[Zope] external methods

Pavlos Christoforou pavlos@gaaros.msrc.sunysb.edu
Fri, 26 Mar 1999 09:28:51 -0500 (EST)


On Fri, 26 Mar 1999, Service Informatique CHSR wrote:

> 
> '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
> 

Jephte 

In your external method l is a local variable. You can access it by simply
referencing it. something like

def spammethod:
	l=[]
	for i in [1,2]:
		l.append(i)
	return l

Pavlos