Hi Kevin. Thanks in advance for your help. So, this is what I do right now: <dtml-with "manage_addProduct['SENEKAProduct']"> <dtml-call "MaterialFolder_add(_.None, _, NoRedir=1)"> </dtml-with> (SENEKAProduct is actually the same Product as the one where MaterialFolder is in). This is what I get: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: _u Traceback (innermost last): File /opt/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /opt/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/Publish.py, line 179, in publish File /opt/Zope-2.1.2-linux2-x86/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: RoleManager) File /opt/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/Publish.py, line 165, in publish File /opt/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: termin_add) File /opt/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: termin_add) File /opt/Zope-2.1.2-linux2-x86/lib/python/OFS/DTMLMethod.py, line 145, in __call__ (Object: termin_add) File /opt/Zope-2.1.2-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: termin_add) File /opt/Zope-2.1.2-linux2-x86/lib/python/DocumentTemplate/DT_With.py, line 148, in render (Object: termin.createInObjectManager(REQUEST['id'], REQUEST)) File /opt/Zope-2.1.2-linux2-x86/lib/python/DocumentTemplate/DT_With.py, line 148, in render (Object: manage_addProduct['SENEKAProduct']) File /opt/Zope-2.1.2-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 335, in eval (Object: MaterialFolder_add(_.None, _, NoRedir=1)) (Info: MaterialFolder_add) File <string>, line 0, in ? File /opt/Zope-2.1.2-linux2-x86/lib/python/OFS/DTMLMethod.py, line 141, in __call__ (Object: MaterialFolder_add) File /opt/Zope-2.1.2-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: MaterialFolder_add) File /opt/Zope-2.1.2-linux2-x86/lib/python/App/FactoryDispatcher.py, line 126, in DestinationURL AttributeError: (see above) I think that the Factory has problems determining the actual URL where to put the object. But how can I fix that? I have encountered that failure in other contexts, too. Am 12-Feb-00 schrieb Kevin Dangoor:
I have a feeling that the problem is the way the manage_addProduct machinery works. Perhaps you can try this:
<dtml-with "manage_addProduct['YourProduct']"> <dtml-call "MaterialFolder_add(_.None, _, NoRedir=1)"> </dtml-with>
In place of just the call to MaterialFolder_add.
Regards, Ingo ------------------------------------------