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".
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
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():
>
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