MF Theme

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 Jun 06 22:02:21 2008 +0200 (2008-06-06)
parents ec4036ef460d
children 871647850d08
files data/plugin/action/PageActions.py
line diff
     1.1 --- a/data/plugin/action/PageActions.py	Fri Jun 06 22:01:12 2008 +0200
     1.2 +++ b/data/plugin/action/PageActions.py	Fri Jun 06 22:02:21 2008 +0200
     1.3 @@ -10,7 +10,10 @@
     1.4      from MoinMoin.formatter.text_html import Formatter
     1.5      request.formatter = Formatter(request)
     1.6  
     1.7 -    request.http_headers()
     1.8 +    try:
     1.9 +        request.http_headers()
    1.10 +    except AttributeError:
    1.11 +        request.emit_http_headers()
    1.12  
    1.13      # This action generate data using the user language
    1.14      request.setContentLanguage(request.lang)