Move class and form class functions to the utils module, issue #56: remove whilelist and blacklist support

This commit is contained in:
Roberto Rosario
2014-10-21 03:21:32 -04:00
parent f8fe2ada0e
commit 0d6b7dfbc6
5 changed files with 153 additions and 71 deletions
-3
View File
@@ -10,7 +10,6 @@ from documents.forms import DocumentForm
from .models import (IMAPEmail, POP3Email, SourceTransformation,
StagingFolderSource, WebFormSource, WatchFolderSource)
from .utils import validate_whitelist_blacklist
logger = logging.getLogger(__name__)
@@ -70,8 +69,6 @@ class WebFormForm(DocumentForm):
def clean_file(self):
data = self.cleaned_data['file']
validate_whitelist_blacklist(data.name, self.source.whitelist.split(','), self.source.blacklist.split(','))
return data