def _edit(self, text, description=None, text_format=None): """ Edit the News Item """ if text_format is None: text_format = getattr(self, 'text_format', 'html') if description is not None: self.setDescription(description) Document._edit(self, text_format, text)
def _edit( self, text, description=None, text_format=None ): """ Edit the News Item """ if text_format is None: text_format = getattr(self, 'text_format', 'html') if description is not None: self.setDescription( description ) Document._edit( self, text_format, text )