14 Sep
2004
14 Sep
'04
8:08 p.m.
Bill Hewitt wrote at 2004-9-14 00:12 -0700:
... * Module Products.Campus.Campus, line 184, in manage_addCampus AttributeError: manage_addBuilding
Look at line 184 of "Products.Campus.Campus". It references an attribute (!) "manage_addBuilding". But the object does not have such an attribute. The usual way would be to use ob.manage_addProduct['Building'].manage_addBuilding(...) The "manage_addProduct[productName]" makes the (so called) constructors of product "productName" available. Alternatively, you could define "manage_addBuilding" as method of "Campus". -- Dieter