Mercurial > moin-mandarin
changeset 29:9ae8db751803
Make PageActions work on Moin 1.7 too
| author | Radomir Dopieralski <devel@sheep.art.pl> |
|---|---|
| date | Tue, 24 Jun 2008 19:07:29 +0200 |
| parents | b08701ade270 |
| children | 21a88f0c01df |
| files | PageActions.py |
| diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/PageActions.py Wed May 21 16:45:26 2008 +0200 +++ b/PageActions.py Tue Jun 24 19:07:29 2008 +0200 @@ -10,7 +10,11 @@ from MoinMoin.formatter.text_html import Formatter request.formatter = Formatter(request) - request.http_headers() + try: + emit_http_headers = request.emit_http_headers + except AttributeError: + emit_http_headers = request.http_headers + emit_http_headers() # This action generate data using the user language request.setContentLanguage(request.lang)
