comparison MoinMoin/action/newpage.py @ 6075:3f7f4cef7c2a

make log_attempt output easily parsed
author 'Karl O. Pinc' <kop@meme.com>
date Mon, 15 Sep 2014 21:53:09 -0500
parents 6366f5b440ff
children 35473fe0967d
comparison
equal deleted inserted replaced
6074:6366f5b440ff 6075:3f7f4cef7c2a
64 """ 64 """
65 _ = self.request.getText 65 _ = self.request.getText
66 page = Page(self.request, self.pagename) 66 page = Page(self.request, self.pagename)
67 if not (page.isWritable() and self.request.user.may.read(self.pagename)): 67 if not (page.isWritable() and self.request.user.may.read(self.pagename)):
68 # Same error as the edit page for localization reasons 68 # Same error as the edit page for localization reasons
69 log_attempt('newpage: immutable or no permissions', False, 69 log_attempt('newpage/immutable or no permissions', False,
70 self.request, pagename=self.pagename) 70 self.request, pagename=self.pagename)
71 return _('You are not allowed to edit this page.') 71 return _('You are not allowed to edit this page.')
72 return '' 72 return ''
73 73
74 def render(self): 74 def render(self):