comparison MoinMoin/PageGraphicalEditor.py @ 1573:1453513eaa7e

use tickets for editing, cfg.edit_ticketing, make tickets more safe, invalidate old tickets
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 18 Sep 2006 21:54:59 +0200
parents e36313297589
children c2457afd322d
comparison
equal deleted inserted replaced
1572:f6136eb3b021 1573:1453513eaa7e
206 self.request.write(unicode(html.INPUT(type="hidden", name="action", value="edit"))) 206 self.request.write(unicode(html.INPUT(type="hidden", name="action", value="edit")))
207 207
208 # Send revision of the page our edit is based on 208 # Send revision of the page our edit is based on
209 self.request.write('<input type="hidden" name="rev" value="%d">' % (rev,)) 209 self.request.write('<input type="hidden" name="rev" value="%d">' % (rev,))
210 210
211 # Create and send a ticket, so we can check the POST
212 self.request.write('<input type="hidden" name="ticket" value="%s">' % wikiutil.createTicket(self.request))
213
211 # Save backto in a hidden input 214 # Save backto in a hidden input
212 backto = form.get('backto', [None])[0] 215 backto = form.get('backto', [None])[0]
213 if backto: 216 if backto:
214 self.request.write(unicode(html.INPUT(type="hidden", name="backto", value=backto))) 217 self.request.write(unicode(html.INPUT(type="hidden", name="backto", value=backto)))
215 218