Baseclass:Folder or ObjectManager
Hallo, my ZClass has as base-class Objectmanager and not Folder. When I try to add(let's call it PastaClass)programmatically PastaClass to an instance of Pastaclass I get a mistake.Adding it with the management-interface everythings o.k.Why?? Do I have to subclass folder?? Thanks. -- Sent through GMX FreeMail - http://www.gmx.net
This is the traceback I get: When I add the zclass to a normal folder(even with the script)everything is fine.?? Error Type: AttributeError Error Value: seek Traceback (innermost last): File C:\Zop\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\Zop\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Zop\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: ElementWithAttributes) File C:\Zop\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Zop\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: klassenbauer) File C:\Zop\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: klassenbauer) File C:\Zop\lib\python\OFS\DTMLMethod.py, line 167, in __call__ (Object: klassenbauer) File C:\Zop\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: klassenbauer) File C:\Zop\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: So) File C:\Zop\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: manage_addProduct['LWL']) File C:\Zop\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: LwlSeite_add(_.None, _, NoRedir=1)) (Info: _) File <string>, line 0, in ? File C:\Zop\lib\python\OFS\DTMLMethod.py, line 163, in __call__ (Object: LwlSeite_add) File C:\Zop\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: LwlSeite_add) File C:\Zop\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: LwlSeite.createInObjectManager(REQUEST['id'], REQUEST)) File C:\Zop\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: manage_addImage('grafik',grafik)) (Info: grafik) File <string>, line 0, in ? File C:\Zop\lib\python\OFS\Image.py, line 338, in manage_addImage (Object: CatalogAware) File C:\Zop\lib\python\OFS\Image.py, line 187, in manage_upload (Object: grafik) File C:\Zop\lib\python\OFS\Image.py, line 220, in _read_data (Object: grafik) AttributeError: (see above) -- Sent through GMX FreeMail - http://www.gmx.net
participants (1)
-
brocken22@gmx.de