summaryrefslogtreecommitdiff
path: root/ishtar_common/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/views.py')
-rw-r--r--ishtar_common/views.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ishtar_common/views.py b/ishtar_common/views.py
index 54523996f..0d0168bb9 100644
--- a/ishtar_common/views.py
+++ b/ishtar_common/views.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (C) 2010-2012 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+# Copyright (C) 2010-2013 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -384,7 +384,7 @@ def show_item(model, name):
n.strftime('%Y%m%d-%H%M%S'))
if doc_type == "odt" and settings.XHTML2ODT_PATH and \
settings.ODT_TEMPLATE:
- tpl = loader.get_template('sheet_%s.html' % name)
+ tpl = loader.get_template('ishtar/sheet_%s.html' % name)
content = tpl.render(context_instance)
try:
tidy_options = dict(output_xhtml=1, add_xml_decl=1, indent=1,
@@ -424,7 +424,7 @@ def show_item(model, name):
response.write(odtfile)
return response
elif doc_type == 'pdf':
- tpl = loader.get_template('sheet_%s_pdf.html' % name)
+ tpl = loader.get_template('ishtar/sheet_%s_pdf.html' % name)
content = tpl.render(context_instance)
result = StringIO.StringIO()
html = content.encode('utf-8')
@@ -438,7 +438,7 @@ def show_item(model, name):
return response
return HttpResponse(content, content_type="application/xhtml")
else:
- tpl = loader.get_template('sheet_%s_window.html' % name)
+ tpl = loader.get_template('ishtar/sheet_%s_window.html' % name)
content = tpl.render(context_instance)
return HttpResponse(content, content_type="application/xhtml")
return func