def edit( self, text, description=None, text_format=None ): """Edit the News Item. """ if text_format is None: text_format = getattr(self, 'text_format', 'structured-text') if description is not None: self.setDescription( description ) Document.edit( self, text_format, text )
def edit(self, text_format, text, file='', REQUEST=None): """ Edit the discussion item. """ Document.edit(self, text_format, text, file) if REQUEST is not None: return self.editForm(self, REQUEST, portal_status_message= \ 'Discussion item changed.')