[Zope] Problems with External Script

Max M maxm@mxm.dk
Wed, 30 Jan 2002 15:05:00 +0000


Ben Ocean wrote:

> Hi;
> I have this external script: 


When you use external scripts you don't use context. Just use self as 
you would normally do in a python script.

def externalMethod(self):
     return self.blah

Well if you are very attached to 'context' you could choose not to use 
the usual Python conventions:

def externalMethod(context):
     return context.blah

regards Max M