[Zope] RE: Passing namespace to Python scrict was: how to call an exter
nal module from a Python script?
Reif Peter
gal@adv.magwien.gv.at
Wed, 26 Sep 2001 08:28:24 +0200
> From: Dieter Maurer *EXTERN* [mailto:dieter@handshake.de]
>
> Reif Peter writes:
> > ...
> > My script:
> >
> > ...
> > ##bind namespace=namespace
> > ...
> >
> > zone = namespace.zone
> > return zone
> >
> > It is called from a DTML-method where the tag <dtml-var
> zone> is rendered
> > correctly:
> >
> > ...
> > <dtml-var get_status_a>
> > ...
> >
> > Error:
> >
> > Zope Error
> > Zope has encountered an error while publishing this resource.
> > Error Type: AttributeError
> > Error Value: zone
> How is it called?
>
> Implicitly (<dtml-var myPythonScript>) or explicitly?
>
Implicitly.
> In the second case, you must pass the namespace yourself!
> In the first case, check in the binding tab that
> the binding really took place.
>
The binding took place!
It doesn't work, anyway :-(
Peter