21 Apr
2001
21 Apr
'01
8:44 p.m.
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