[Zope-CMF] dicussion reply in python script

polo polo malice120@yahoo.fr
Mon, 30 Jun 2003 11:58:15 +0200 (CEST)


Hi here a script to create a document:

# adds a document at the root of the site
document_id = 'a_document'
portal = self.portal_url.getPortalObject()
portal.invokeFactory(portal_type='Document',
document_id)
doc = portal._getOb(groups_id)
# dubline core stuff
doc.setTitle('A Document')
doc.setDescription('This is a document for testing.')
# Document specific
doc.edit(
     text_format='structured-text',
     text='Some Text Goes Here\n\n   A paragraph\n  
for you.'
 )

HOW do you create the discussion reply of this document?

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com