[Zope] Create subfolder at product creation

Chad Nantais cnantais@rednaxel.com
Wed, 3 Jul 2002 02:15:15 -0400


I have a folderish Python product called "Customer".  When an instance of
this product is created, I want it to contain a folder called "Vehicles"
which is a normal OFS.Folder that will contain Vehicle objects owned by the
customer.  If I create a manage_afterAdd method in the Customer class, what
does it need to call to create a folder called "Vehicles"?  Or, if the
manage_afterAdd is not a good way to accomplish this, what is better?

Thanks in advance.