comparison MoinMoin/action/AttachFile.py @ 3525:ee0644a26e30

action Attachfile, Despam, backup, thread_monitor: removed duplicated checks done by request.__init__
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 26 Apr 2008 19:42:26 +0200
parents 5f660b3c1cd7
children 1052c105b16f
comparison
equal deleted inserted replaced
3523:74f42592c7a0 3525:ee0644a26e30
500 ############################################################################# 500 #############################################################################
501 501
502 def execute(pagename, request): 502 def execute(pagename, request):
503 """ Main dispatcher for the 'AttachFile' action. """ 503 """ Main dispatcher for the 'AttachFile' action. """
504 _ = request.getText 504 _ = request.getText
505
506 if action_name in request.cfg.actions_excluded:
507 msg = _('File attachments are not allowed in this wiki!')
508 error_msg(pagename, request, msg)
509 return
510 505
511 do = request.form.get('do', ['upload_form']) 506 do = request.form.get('do', ['upload_form'])
512 handler = globals().get('_do_%s' % do[0]) 507 handler = globals().get('_do_%s' % do[0])
513 if handler: 508 if handler:
514 msg = handler(pagename, request) 509 msg = handler(pagename, request)