fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some refactoring & documentation changes in search.
[wolnelektury.git]
/
apps
/
catalogue
/
management
/
commands
/
pack.py
diff --git
a/apps/catalogue/management/commands/pack.py
b/apps/catalogue/management/commands/pack.py
index
a300aff
..
280c0f6
100755
(executable)
--- a/
apps/catalogue/management/commands/pack.py
+++ b/
apps/catalogue/management/commands/pack.py
@@
-23,8
+23,7
@@
class Command(BaseCommand):
make_option('-e', '--exclude', dest='exclude', metavar='SLUG,...',
help='Exclude specific books by slug')
)
make_option('-e', '--exclude', dest='exclude', metavar='SLUG,...',
help='Exclude specific books by slug')
)
- help = 'Prepare data for Lesmianator.'
- ftypes = ['xml', 'txt', 'html', 'epub', 'pdf']
+ help = 'Prepare ZIP package with files of given type.'
args = '[%s] output_path.zip' % '|'.join(ftypes)
def handle(self, ftype, path, **options):
args = '[%s] output_path.zip' % '|'.join(ftypes)
def handle(self, ftype, path, **options):
@@
-34,7
+33,7
@@
class Command(BaseCommand):
include = options.get('include')
exclude = options.get('exclude')
include = options.get('include')
exclude = options.get('exclude')
- if ftype in
self.ftype
s:
+ if ftype in
Book.format
s:
field = "%s_file" % ftype
else:
print self.style.ERROR('Unknown file type.')
field = "%s_file" % ftype
else:
print self.style.ERROR('Unknown file type.')