Re: [Zope] PythonScript and ZClass generation problem
17 Jan
2001
17 Jan
'01
8:44 p.m.
Alexander Limi writes:
... in PythonScript ... return self.artists.manage_addProduct['Artist'].Artist_add(_.None,_)
but then the REQUEST object was not available, and the object creation fails since it can't find the variables it needs. The traceback for this was: It seems that you PythonScript was called without a namespace being passed. In this case, a new (essentially empty) "_" is created. It does not contain 'REQUEST'.
You could try return self.artists.manage_addProduct['Artist'].Artist_add(_.None,REQUEST) Dieter
9211
Age (days ago)
9211
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dieter Maurer