[Zope] calling procedures in external methods.

Paul Winkler pw_lists at slinkp.com
Thu May 27 15:04:06 EDT 2004

On Thu, May 27, 2004 at 11:56:05AM -0700, Dennis Allison wrote:
> Probably a stupid question, but ..
> Suppose I have external methods f(self, x, y z ) and g(self, p, d, q)
> defined in an external method. 
> When f references g in the external method, does it do so using 
> 	self.g(p,d,q)
> or
> 	g( self, p, d, q)
> or does it matter.  

If they're defined in the same module, the latter.

Otherwise, the former will work by acquisition
(but 'g' must be the ID that you give to the external method 
object in the ZMI).
In that case I'm not entirely sure what g would use for "self".


Paul Winkler

More information about the Zope mailing list