28 Jul
2005
28 Jul
'05
7:13 p.m.
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