[CMF-checkins] CVS: Products/CMFDefault - Document.py:1.45
Andrew Sawyers
andrew@zope.com
Thu, 14 Mar 2002 14:56:30 -0500
Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv19534
Modified Files:
Document.py
Log Message:
*fixed problem in zmi edit which switched the format and text around breaking edits from within the ZMI.
=== Products/CMFDefault/Document.py 1.44 => 1.45 ===
security.declareProtected(CMFCorePermissions.ModifyPortalContent,
'manage_editDocument' )
- def manage_editDocument(self, text_format, text, file='', REQUEST=None):
+ def manage_editDocument(self, text, text_format, file='', REQUEST=None):
""" A ZMI (Zope Management Interface) level editing method """
- self.edit(text_format, text, file)
+ self.edit(text_format=text_format, text=text, file=file)
if REQUEST is not None:
REQUEST['RESPONSE'].redirect(
self.absolute_url()