[Zope] Calling ZClass constructors programmatically...

Dieter Maurer dieter@handshake.de
Sat, 21 Apr 2001 22:44:54 +0200 (CEST)


sean.upton@uniontrib.com writes:
 > For some reason, it doesn't work (at least for my ZClass, which subclasses
 > ZCatalog:CatalogAware, and OFS:Folder), with code like:
 > 
 > container.manage_addProduct['Classifieds'].AdFolder_add(...)
 > 
 > I can't seem to publish 'Classifieds' - I get an AttributeError in
 > Product.py for 'Classifeds'. 
It this a typo? "Classifeds" versus "Classifieds"?

I just tried it with my ZClass:

  <dtml-with "manage_addProduct['Test']">
    <dtml-var ZF_addForm>
  </dtml-with>

Works as it should do.

My class is derived from ZObject and ZFolder.


Dieter