[Zope] Cant seem to get this to work.... RE: Import Questions

Dieter Maurer dieter at handshake.de
Tue Sep 14 16:08:47 EDT 2004


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


More information about the Zope mailing list