[Zope-CMF] Re: a CMF <-> Python question

Seb Bacon seb@jamkit.com
Tue, 4 Dec 2001 13:32:21 -0000


Pascal,

Please mail the list, not me directly.  I'm pressed for time, and someone
else may be able to help you in more detail.

----- Original Message -----
From: Pascal Samuzeau <samuzeau@oreka.com>


>  3 ) Tell to my Zope site to do :
>  3.1 ) Go under the Members/"sender"
>  3.2 ) Create a Document with the "id"
>  3.2 ) Feed this document with "data"
>  3.2 ) Publish this document
>
>  I think to do this by XML-RPC and a External Python Script.
>  Am I right

You can use a normal python script.  Something like:

  home = context.portal_membership.getMemberById(sender).getHomeFolder()
  home.invokeFactory('Document', id)
  home[id].edit(text_format=structured-text, text=data)

see a message from Tres earlier today about publishing programmatically.

seb