[CMF-checkins] CVS: CMF/CMFWiki/skins/wiki - wikipage_editcomment_handler.py:1.2
Tres Seaver
tseaver@zope.com
Mon, 3 Dec 2001 09:25:25 -0500
Update of /cvs-repository/CMF/CMFWiki/skins/wiki
In directory cvs.zope.org:/tmp/cvs-serv31761/skins/wiki
Modified Files:
wikipage_editcomment_handler.py
Log Message:
- Make title of wiki page editable, and make the wiki borrow the
Title() from its front page (thanks to Joseph Wayne Norton for
the patch).
=== CMF/CMFWiki/skins/wiki/wikipage_editcomment_handler.py 1.1 => 1.2 ===
text = None
type = None
-title = ''
+title = None
mode = None
comment = None
log = None
@@ -22,7 +22,8 @@
context.comment(comment, ack_requested)
else:
text = REQUEST['text']
+ title = REQUEST.get('title',None)
log = REQUEST.get('log', '')
- context.edit(text=text,type=type, title=title,log=log,timeStamp=timeStamp)
+ context.edit(text=text,type=type,title=title,log=log,timeStamp=timeStamp)
-RESPONSE.redirect('%s' % context.absolute_url())
\ No newline at end of file
+RESPONSE.redirect('%s' % context.absolute_url())