[CMF-checkins] CVS: CMF/CMFDefault - Document.py:1.34
Tres Seaver
tseaver@zope.com
Sun, 2 Dec 2001 21:48:59 -0500
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv16786
Modified Files:
Document.py
Log Message:
- Sync ZMI edit method with "normal" protocol (passing 'text_format')
Tracker #417.
=== CMF/CMFDefault/Document.py 1.33 => 1.34 ===
security.declareProtected(CMFCorePermissions.ModifyPortalContent,
'manage_editDocument' )
- def manage_editDocument(self, text, file='', REQUEST=None):
+ def manage_editDocument(self, text_format, text, file='', REQUEST=None):
""" A ZMI (Zope Management Interface) level editing method """
- self._edit(text_format, text, file)
+ self.edit(text_format, text, file)
if REQUEST is not None:
REQUEST['RESPONSE'].redirect(
self.absolute_url()