comparison MoinMoin/action/__init__.py @ 3040:8608b258f8e6

bug fix of MoinMoinBugs/MoveAttachmentNotWorkingWithModPython (thanks to Boleslaw Kulbabinski) (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 05 Feb 2008 21:22:56 +0100
parents ba14d391c2ba
children a739558ca3dc
comparison
equal deleted inserted replaced
3039:744c46c1f869 3040:8608b258f8e6
128 else: 128 else:
129 ticket_html = '' 129 ticket_html = ''
130 130
131 d = { 131 d = {
132 'method': self.method, 132 'method': self.method,
133 'baseurl': self.request.getScriptname(),
133 'enctype': self.enctype, 134 'enctype': self.enctype,
134 'error_html': error_html, 135 'error_html': error_html,
135 'actionname': self.actionname, 136 'actionname': self.actionname,
136 'pagename': self.pagename, 137 'pagename': self.pagename,
138 'pagename_quoted': wikiutil.quoteWikinameURL(self.pagename),
137 'ticket_html': ticket_html, 139 'ticket_html': ticket_html,
138 'user_html': self.get_form_html(buttons_html), 140 'user_html': self.get_form_html(buttons_html),
139 } 141 }
140 142
141 form_html = ''' 143 form_html = '''
142 %(error_html)s 144 %(error_html)s
143 <form action="" method="%(method)s" enctype="%(enctype)s"> 145 <form action="%(baseurl)s/%(pagename_quoted)s" method="%(method)s" enctype="%(enctype)s">
144 <div> 146 <div>
145 <input type="hidden" name="action" value="%(actionname)s"> 147 <input type="hidden" name="action" value="%(actionname)s">
146 %(ticket_html)s 148 %(ticket_html)s
147 %(user_html)s 149 %(user_html)s
148 </div> 150 </div>