comparison MoinMoin/xmlrpc/__init__.py @ 3175:2a3a6cb34e45

pylint findings: fix some harmless stuff
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 03 Mar 2008 02:02:55 +0100
parents ed9b1e5cf0e1
children a739558ca3dc
comparison
equal deleted inserted replaced
3174:4ea7ea7d755e 3175:2a3a6cb34e45
563 563
564 """ 564 """
565 if not self.request.user.may.write(pagename): 565 if not self.request.user.may.write(pagename):
566 return xmlrpclib.Fault(1, "You are not allowed to edit this page") 566 return xmlrpclib.Fault(1, "You are not allowed to edit this page")
567 567
568 from MoinMoin.PageEditor import PageEditor
569 rev = int(self._instr(revision)) 568 rev = int(self._instr(revision))
570 editor = PageEditor(self.request, pagename) 569 editor = PageEditor(self.request, pagename)
571 570
572 try: 571 try:
573 editor.revertPage(rev) 572 editor.revertPage(rev)