From: Radek Czajka Date: Thu, 17 Nov 2011 16:09:35 +0000 (+0100) Subject: reenable pdf catalogue caching, X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/1f833acede38e81683b2bdc9096edf203c6ceb1e?ds=inline reenable pdf catalogue caching, minor fix --- diff --git a/apps/catalogue/templatetags/catalogue_tags.py b/apps/catalogue/templatetags/catalogue_tags.py index 323edda90..e6544b038 100644 --- a/apps/catalogue/templatetags/catalogue_tags.py +++ b/apps/catalogue/templatetags/catalogue_tags.py @@ -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(""" %(depth)dem%(title)s %(audiobook)s diff --git a/apps/reporting/utils.py b/apps/reporting/utils.py index 919e2edc1..8a7a6cf1d 100755 --- a/apps/reporting/utils.py +++ b/apps/reporting/utils.py @@ -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__"):