[Zope] adding another product during add product

Aseem Mohanty aseem@neurobehavioralsystems.com
Mon, 24 Jun 2002 21:44:37 -0700


I am sorry I need to restate the problem, How do I do it in the 
manage_addMyProduct...
can I just do :

parent_folder = Self.aq_parent
parent_folder.manage_addProduct['CookieCrumbler'].manage_addCC('cookie_authentication',1) 


I realize it could be a problem if the container is not a folder or 
folderish object. If this is not good what is a good way to do it?

TIA
AM


Aseem Mohanty wrote:

> Hi,
> I have a custom product that requires a cookie crumbler instance in 
> its parent folder to operate.
>
> What do I have to do to be able to add cookie crumbler 
> programmatically to a folder when I do an Add->MyProduct in that given 
> folder??
>
> TIA
> AM
>

-- 
==================================================================
 Aseem Mohanty							   
 Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 
 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231		  	
==================================================================								  	
 "I saw `cout' being shifted "Hello world" times to the left and  
  stopped right there!!"                        -- Steve Gonedes  
==================================================================