[CMF-checkins] CVS: CMF/CMFDefault - Document.py:1.47 NewsItem.py:1.15
Tres Seaver
tseaver@zope.com
Mon, 1 Apr 2002 17:11:22 -0500
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv12266/CMFDefault
Modified Files:
Document.py NewsItem.py
Log Message:
- Fixed buggy editing of NewsItems in the ZMI (Tracker #472).
=== CMF/CMFDefault/Document.py 1.46 => 1.47 ===
security.declareProtected(CMFCorePermissions.ModifyPortalContent,
'manage_editDocument' )
- def manage_editDocument(self, text, text_format, 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_format, text=text, file=file)
+ Document.edit( self, text_format=text_format, text=text, file=file )
if REQUEST is not None:
REQUEST['RESPONSE'].redirect(
self.absolute_url()
=== CMF/CMFDefault/NewsItem.py 1.14 => 1.15 ===
meta_type='News Item'
+ text_format = 'html'
security = ClassSecurityInfo()