Mercurial > moin > 1.9
changeset 3357:bb04265ce89a
fix revert action. I suck.
author | Johannes Berg <johannes AT sipsolutions DOT net> |
---|---|
date | Thu, 20 Mar 2008 16:31:10 +0100 |
parents | 2dd4904cfee4 |
children | 795ee44690a0 |
files | MoinMoin/action/revert.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/action/revert.py Thu Mar 20 16:23:15 2008 +0100 +++ b/MoinMoin/action/revert.py Thu Mar 20 16:31:10 2008 +0100 @@ -23,6 +23,7 @@ _ = self._ self.form_trigger = 'revert' self.form_trigger_label = _('Revert') + self.method = 'POST' def is_allowed(self): # this is not strictly necessary because the underlying storage code checks @@ -52,7 +53,7 @@ comment = form.get('comment', [u''])[0] comment = wikiutil.clean_input(comment) - if self.request.method != 'POST': + if self.request.request_method != 'POST': return False, u'' rev = self.request.rev