From d79e86ae30bf2219e7bf44e95dcb3318c59d99bb Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 26 Jan 2012 11:37:44 -0400 Subject: [PATCH] Only allow compressed files for bulk upload command --- apps/sources/management/commands/bulk_upload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/sources/management/commands/bulk_upload.py b/apps/sources/management/commands/bulk_upload.py index f31c62d48c..47c0a179d1 100644 --- a/apps/sources/management/commands/bulk_upload.py +++ b/apps/sources/management/commands/bulk_upload.py @@ -60,10 +60,10 @@ class Command(LabelCommand): source = OutOfProcess() fd = open(label) try: - result = source.upload_file(fd, filename=None, use_file_name=False, document_type=document_type, expand=True, metadata_dict_list=metadata_dict_list, user=None, document=None, new_version_data=None, verbose=True) + result = source.upload_file(fd, filename=None, use_file_name=False, document_type=document_type, expand=True, metadata_dict_list=metadata_dict_list, user=None, document=None, new_version_data=None, command_line=True) pass except NotACompressedFile: - print '%s is not a compressed file.' + print '%s is not a compressed file.' % label else: print 'Finished.'