Mercurial > moin > 1.9
changeset 3374:043689a3b04c
action.revert: fixed doc string
author | Reimar Bauer <rb.proj AT googlemail DOT com> |
---|---|
date | Thu, 20 Mar 2008 22:03:19 +0100 |
parents | c20aa5b0158e |
children | 50fe2fa62f30 |
files | MoinMoin/action/revert.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/action/revert.py Thu Mar 20 22:02:02 2008 +0100 +++ b/MoinMoin/action/revert.py Thu Mar 20 22:03:19 2008 +0100 @@ -34,6 +34,7 @@ return allowed, _('You are not allowed to revert this page!') def check_condition(self): + """ checks valid page and rev """ _ = self._ if not self.request.rev: # same string as in PageEditor... @@ -48,7 +49,7 @@ return None def do_action(self): - """ Delete pagename """ + """ revert pagename """ form = self.form comment = form.get('comment', [u''])[0] comment = wikiutil.clean_input(comment) @@ -71,6 +72,7 @@ return True, msg def get_form_html(self, buttons_html): + """ creates the form """ _ = self._ d = {