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