comparison MoinMoin/action/edit.py @ 6073:338348b5d5ad

use proper parameter name in log_attempt() call
author 'Karl O. Pinc' <kop@meme.com>
date Mon, 15 Sep 2014 21:14:44 -0500
parents 68092d872ecc
children 6366f5b440ff
comparison
equal deleted inserted replaced
6072:eeb0a608382d 6073:338348b5d5ad
21 # multiple buttons pressed at once? must be some spammer/bot 21 # multiple buttons pressed at once? must be some spammer/bot
22 check_surge_protect(request, kick=True) # get rid of him 22 check_surge_protect(request, kick=True) # get rid of him
23 return 23 return
24 24
25 if not request.user.may.write(pagename): 25 if not request.user.may.write(pagename):
26 log_attempt('edit: edit', False, request, page=pagename) 26 log_attempt('edit: edit', False, request, pagename=pagename)
27 page = wikiutil.getLocalizedPage(request, 'PermissionDeniedPage') 27 page = wikiutil.getLocalizedPage(request, 'PermissionDeniedPage')
28 page.body = _('You are not allowed to edit this page.') 28 page.body = _('You are not allowed to edit this page.')
29 page.page_name = pagename 29 page.page_name = pagename
30 page.send_page(send_special=True) 30 page.send_page(send_special=True)
31 return 31 return