comparison MoinMoin/PageGraphicalEditor.py @ 1682:30116d7d098a

request.rev is either revision integer (when given in form) or None
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 19 Nov 2006 20:44:41 +0100
parents abd19aa50977
children 9ae9f564380e
comparison
equal deleted inserted replaced
1681:fc03cd8ff0f3 1682:30116d7d098a
109 elif preview is None: 109 elif preview is None:
110 title = _('Edit "%(pagename)s"') 110 title = _('Edit "%(pagename)s"')
111 else: 111 else:
112 title = _('Preview of "%(pagename)s"') 112 title = _('Preview of "%(pagename)s"')
113 # Propagate original revision 113 # Propagate original revision
114 rev = int(form['rev'][0]) 114 rev = request.rev
115 self.set_raw_body(preview, modified=1) 115 self.set_raw_body(preview, modified=1)
116 116
117 # send header stuff 117 # send header stuff
118 lock_timeout = self.lock.timeout / 60 118 lock_timeout = self.lock.timeout / 60
119 lock_page = wikiutil.escape(self.page_name, quote=1) 119 lock_page = wikiutil.escape(self.page_name, quote=1)