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
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )