[Zope] adding files and folder in a object during generation

Allen Huang swapp0 at yahoo.com
Thu Mar 15 01:40:24 EDT 2007


Could anyone give me any examples?


----- Original Message ----
From: Andreas Jung <lists at zopyx.com>
To: Allen Huang <swapp0 at yahoo.com>; Zope <zope at zope.org>
Sent: Thursday, March 15, 2007 1:23:14 PM
Subject: Re: [Zope] adding files and folder in a object during generation


--On 14. März 2007 22:18:06 -0700 Allen Huang <swapp0 at yahoo.com> wrote:

> I created an external product using python to creates a folderish object.
> During object instantiation by              manage_addProduct(self, id,
> ......):
> I wish to add a couple of empty files and folder.

Such tasks belong into manage_afterAdd() or should be implemented using the 
lately introduced event-based notification mechanism.

-aj


 
____________________________________________________________________________________
TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070314/9b61de6b/attachment.htm


More information about the Zope mailing list