changeset 37:fa519b5676d8 Release 1

Make the action plugin compatible both with 1.6 and 1.7
author Radomir Dopieralski <devel@sheep.art.pl>
date Fri, 06 Jun 2008 22:02:21 +0200
parents ec4036ef460d
children 871647850d08
files data/plugin/action/PageActions.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/PageActions.py	Fri Jun 06 22:01:12 2008 +0200
+++ b/data/plugin/action/PageActions.py	Fri Jun 06 22:02:21 2008 +0200
@@ -10,7 +10,10 @@
     from MoinMoin.formatter.text_html import Formatter
     request.formatter = Formatter(request)
 
-    request.http_headers()
+    try:
+        request.http_headers()
+    except AttributeError:
+        request.emit_http_headers()
 
     # This action generate data using the user language
     request.setContentLanguage(request.lang)