Re: [Zope] context in Python Script

2000-11-28 Thread Dieter Maurer
Chris Gray writes: > "context" in external Python Script I do not yet know, what an external Python script is. In the old "external methods", you had to use "self" as first parameter. Then (in most cases), you could use "self" inside the function body, as you would now use "context".

Re: [Zope] context in Python Script

2000-11-28 Thread Chris Gray
D'oh! Thanks, Michel. That was the problem. Right now bindings all default to blank in a new external script. Cheers, Chris On Tue, 28 Nov 2000, Michel Pelletier wrote: > Chris Gray wrote: > > > > I still can't get external Python Scripts to work as described in the Zope > > Book. I am us

Re: [Zope] context in Python Script

2000-11-28 Thread Michel Pelletier
Chris Gray wrote: > > I still can't get external Python Scripts to work as described in the Zope > Book. I am using the version of Python Scripts from the public > CVS. Internal Scripts work fine, but I can't seem to use the > "context" object in an external script. > > def tryContext(): >

[Zope] context in Python Script

2000-11-28 Thread Chris Gray
I still can't get external Python Scripts to work as described in the Zope Book. I am using the version of Python Scripts from the public CVS. Internal Scripts work fine, but I can't seem to use the "context" object in an external script. def tryContext(): """tryContext function""" retu