changeset 479:167888214d95

arnica: compatibility for 1.9 changes added
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 23 Jan 2010 21:56:24 +0100
parents 2a915e70966f
children 1ef31d76eb88
files data/plugin/action/arnica_slides.py data/plugin/parser/text_x_arnica.py
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/arnica_slides.py	Thu Jan 21 21:13:42 2010 +0100
+++ b/data/plugin/action/arnica_slides.py	Sat Jan 23 21:56:24 2010 +0100
@@ -400,7 +400,9 @@
         html = html_slideform(request, pagename, all_description, all_exif_date, images, original_images, idx)
         request.write(request.formatter.rawHTML(html))
         request.write(request.formatter.endContent())
-        request.write(request.theme.send_footer(pagename))
+        footer = request.theme.send_footer(pagename)
+        if not ensureversion('1.9.0'):
+            request.write(footer)
         request.theme.send_closing_html()
         return None, None
 
--- a/data/plugin/parser/text_x_arnica.py	Thu Jan 21 21:13:42 2010 +0100
+++ b/data/plugin/parser/text_x_arnica.py	Sat Jan 23 21:56:24 2010 +0100
@@ -449,5 +449,7 @@
         """ parser output """
         # checks if initializing of all attributes in __init__ was done
         if self.init_settings:
-            self.request.write(self.render(formatter))
+            html = self.render(formatter)
+            if html: # 1.8 compatibility
+                self.request.write(html)