fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kindle promo
[wolnelektury.git]
/
apps
/
catalogue
/
utils.py
diff --git
a/apps/catalogue/utils.py
b/apps/catalogue/utils.py
index
3a8d1b0
..
29a1857
100644
(file)
--- a/
apps/catalogue/utils.py
+++ b/
apps/catalogue/utils.py
@@
-90,6
+90,7
@@
class LockFile(object):
self.lock.close()
self.lock.close()
+@task
def create_zip(paths, zip_slug):
"""
Creates a zip in MEDIA_ROOT/zip directory containing files from path.
def create_zip(paths, zip_slug):
"""
Creates a zip in MEDIA_ROOT/zip directory containing files from path.
@@
-128,8
+129,3
@@
def remove_zip(zip_slug):
except OSError as oe:
if oe.errno != ENOENT:
raise oe
except OSError as oe:
if oe.errno != ENOENT:
raise oe
-
-
-@task
-def create_zip_task(*args):
- return create_zip(*args)