reenable pdf catalogue caching,
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Thu, 17 Nov 2011 16:09:35 +0000 (17:09 +0100)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Thu, 17 Nov 2011 16:09:35 +0000 (17:09 +0100)
minor fix

apps/catalogue/templatetags/catalogue_tags.py
apps/reporting/utils.py

index 323edda..e6544b0 100644 (file)
@@ -141,7 +141,7 @@ def book_tree(book_list, books_by_parent):
         return ''
 
 @register.simple_tag
-def book_tree_texml(book_list, books_by_parent, depth=0):
+def book_tree_texml(book_list, books_by_parent, depth=1):
     return "".join("""
             <cmd name='hspace'><parm>%(depth)dem</parm></cmd>%(title)s
             <spec cat='align' /><cmd name="note"><parm>%(audiobook)s</parm></cmd>
index 919e2ed..8a7a6cf 100755 (executable)
@@ -79,7 +79,7 @@ def generated_file_view(file_name, mime_type, send_name=None, signals=None):
 
     def decorator(func):
         def view(request, *args, **kwargs):
-            if not os.path.exists(file_path) or True:
+            if not os.path.exists(file_path):
                 func(file_path, *args, **kwargs)
 
             if hasattr(send_name, "__call__"):