comparison MoinMoin/events/__init__.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 50251583a7bb
children dca00e9c5bcd
comparison
equal deleted inserted replaced
6074:6366f5b440ff 6075:3f7f4cef7c2a
185 name = u"UserCreatedEvent" 185 name = u"UserCreatedEvent"
186 description = _(u"""A new account has been created""") 186 description = _(u"""A new account has been created""")
187 req_superuser = True 187 req_superuser = True
188 188
189 def __init__(self, request, user): 189 def __init__(self, request, user):
190 log_attempt('event: newaccount', True, request, user.name) 190 log_attempt('event/newaccount', True, request, user.name)
191 Event.__init__(self, request) 191 Event.__init__(self, request)
192 self.user = user 192 self.user = user
193 193
194 194
195 class PagePreSaveEvent(Event): 195 class PagePreSaveEvent(Event):