Esempio n. 1
0
 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 )
Esempio n. 2
0
 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 )
Esempio n. 3
0
    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.')
Esempio n. 4
0
    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.')