comparison MoinMoin/PageGraphicalEditor.py @ 1777:ed44b93599b5

remove unneeded request param from page.send_page()
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 18 Feb 2007 21:39:36 +0100
parents fc75423e26a8
children 224e2106ab89
comparison
equal deleted inserted replaced
1776:fc75423e26a8 1777:ed44b93599b5
21 from StringIO import StringIO 21 from StringIO import StringIO
22 22
23 def execute(pagename, request): 23 def execute(pagename, request):
24 if not request.user.may.write(pagename): 24 if not request.user.may.write(pagename):
25 _ = request.getText 25 _ = request.getText
26 Page(request, pagename).send_page(request, msg=_('You are not allowed to edit this page.')) 26 Page(request, pagename).send_page(msg=_('You are not allowed to edit this page.'))
27 return 27 return
28 28
29 PageGraphicalEditor(request, pagename).sendEditor() 29 PageGraphicalEditor(request, pagename).sendEditor()
30 30
31 31
83 else: 83 else:
84 msg = edit_lock_message 84 msg = edit_lock_message
85 85
86 # Did one of the prechecks fail? 86 # Did one of the prechecks fail?
87 if msg: 87 if msg:
88 self.send_page(request, msg=msg) 88 self.send_page(msg=msg)
89 return 89 return
90 90
91 # check if we want to load a draft 91 # check if we want to load a draft
92 use_draft = None 92 use_draft = None
93 if form.has_key('button_load_draft'): 93 if form.has_key('button_load_draft'):
386 if preview is not None: 386 if preview is not None:
387 if staytop: 387 if staytop:
388 content_id = 'previewbelow' 388 content_id = 'previewbelow'
389 else: 389 else:
390 content_id = 'preview' 390 content_id = 'preview'
391 self.send_page(request, content_id=content_id, content_only=1, 391 self.send_page(content_id=content_id, content_only=1, hilite_re=badwords_re)
392 hilite_re=badwords_re)
393 392
394 request.write(request.formatter.endContent()) # end content div 393 request.write(request.formatter.endContent()) # end content div
395 request.theme.send_footer(self.page_name) 394 request.theme.send_footer(self.page_name)
396 request.theme.send_closing_html() 395 request.theme.send_closing_html()
397 396