[Zope] what the namespace means in Script(python)?

Dieter Maurer dieter at handshake.de
Thu Jul 28 15:13:59 EDT 2005


Litao Wei wrote at 2005-7-28 01:45 +0800:
> ...
>In Script(python) binding page. there is some description about 
>namespace binding:
>
>When the script is called from DTML, this is the caller's DTML 
>namespace, otherwise it is an empty namespace.
> ...
>But in zope book, when talk about  Error Handling in the Advanced Page 
>Templates chapter. It looks that it use ZPT with script's namespace.

ZPT's are ready to expose its namespace as if it were
a DTML namespace.

Therefore, you can also pass a ZTP namespace to the "namespace"
binding of a Python Script.


-- 
Dieter


More information about the Zope mailing list