[Zope-PTK] Fw: PythonMethods and ZClass generation problem

Alexander Limi alexander@limi.net
Thu, 18 Jan 2001 22:01:45 +0100


From: "Shane Hathaway" <shane@digicool.com>

> You were *SO* close. :-)
>
> I think you want this:
>
> return self.artists.manage_addProduct['Artist'].Artist_add(_.None,_)
>
> to be like this:
>
> return
> self.artists.manage_addProduct['Artist'].Artist_add(_.None,_,REQUEST)

Tried both of those already. When testing it, and Artist_add contains
nothing but "<dtml-var REQUEST>" (so nothing else can be wrong), I get:

KeyError: REQUEST

and the traceback looks like this:

File <string>, line 41, in registerartist (Object:
ApplicationDefaultPermissions)
File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 168, in __call__
(Object: Artist_add)
File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 528, in
__call__ (Object: Artist_add) KeyError: (see above)


Thanks for you suggestions so far,


Alexander.