On Mon, 23 Aug 1999, Kevin Dangoor wrote:
Hi, Chris
You've given me a good impetus to figure this out once and for all :)
Hi Kevin, Thanks, this is definitely closer. In the product directory photoCD I have ZClasses multiRes and photoCD. I'm in an instance of a photoCD class(which inherits from Folder) somewhere in my site and I am trying to add an instance of a multiRes. So I added this to my method in photoCD. <dtml-with "manage_addProduct['photoCD']"> <dtml-call "multiRes_add(_.None, _, NoRedir=1)"> </dtml-with> since I want something in the photoCD product directory and what I want is a multiRes ZClass right? So If I do this I get the following odd error message: Error Type: AttributeError Error Value: _u Here is part of the traceback: ... File /usr/local/Zope-2.0.0b3-linux2-x86/lib/python/DocumentTemplate/DT_With.py, line 148, in render (Object: manage_addProduct['photoCD']) File /usr/local/Zope-2.0.0b3-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 315, in eval (Object: multiRes_add(_.None, _)) File <string>, line 0, in ? File /usr/local/Zope-2.0.0b3-linux2-x86/lib/python/OFS/DTMLMethod.py, line 141, in __call__ (Object: multiRes_add) File /usr/local/Zope-2.0.0b3-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: multiRes_add) File /usr/local/Zope-2.0.0b3-linux2-x86/lib/python/App/FactoryDispatcher.py, line 126, in DestinationURL AttributeError: (see above) If I call multiRes_add with no paramaters then it calls it properly but the name space is wrong. Any thoughts? Thanks a lot for your help I really apreciate it. -Chris