[Zope] external methods
Paul Everitt
Paul@digicool.com
Fri, 26 Mar 1999 08:44:12 -0500
> After some digging, I found that the problem lies in
> the expression 'self.l'
>
> 'self.' gives access to the object hierarchy, not the variables
> namespace.
>
> So, I solved my problem by writing 'self.REQUEST['l']'
> instead of 'self.l'
>
> Also, I think that this should be clearly documented.
> Apparently, the only way to acess variables namespaces
> in external methods is through self.REQUEST
> This confuses a 'normal' python user whose variable
> namespace is usually accessed through self.
I believe that you can just ask for it in your function signature:
def my_method(self,l):
return l + ' is cool!'
--Paul