[Zope] Create objects of MyClass
Serg
sutni at yandex.ru
Wed Mar 17 02:35:59 EST 2004
> > I can add objects of MyClass through ZMI.
> > How can I add some object through my own interface: for example, on
> > button click on DTML form?
>
> Have that form submit to a python script and do something like:
> context.manage_addProduct['Your Product Name'].manage_addMyClass(id,None)
> cheers,
> Chris
How can I determine 'My Product Name'? My class named 'MyClass'. It be
located in dir ../Python/Products/MyProject/.
If I try use below
context.manage_addProduct['MyClass'].manage_addMyClass(id,None)
Zope write:
"An error was encountered while publishing this resource.
Error Type: AttributeError
Error Value: MyClass"
Thanks and kind regards
Serg
More information about the Zope
mailing list