[Zope] calling manage_addProduct from ZClass method?

Dieter Maurer dieter@handshake.de
Mon, 27 Aug 2001 21:05:50 +0200 (CEST)


dedmundson@bigfoot.com writes:
 >    - Products
 >        - GPScape (Product)
 >           - new_cell (Script)
 >           - Cell (ZClass)
 >               - split (method, Script)
 > 
 > I'm getting an error when my split method tries to execute:
 > 
 >   line 22:  gpscape = container.manage_addProduct(['GPScape'])  <<<<<< error
 >   line 23:  nw = gpscape.new_cell(container,'NW',cn,(cn+cs)/2,(cw+ce)/2,cw)
 > 
 > Here, container is an instance of Cell and I'm simply trying to
 > set gpscape as a convenience variable for future use, e.g., the
 > new_cell call in line 23.  Any idea why this is an error?
"manage_addProduct" is an "ObjectManager" method.

Apparently, your container is not an ObjectManager.


Dieter