[Zope3-Users] Re: Traversal Tricks (now Seeking Tutorial on Namespaces)

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Apr 6 03:31:37 EDT 2006


On Wednesday 05 April 2006 10:32, Jeff Rush wrote:
> Now I'm a bit confused -- there seem to be 'publication namespaces' e,g.
> '++resource++<name>', and 'TALES namespaces' e.g. 'zope:<name>', and the
> publication namespaces leak into the TALES namespaces i.e. are accessible
> as shown by your examples, but I'm unsure if the TALES namespaces in turn
> leak into the publication namespaces.

No, they don't. "publication namespaces" are just valid traversal steps 
(adapters). TALES uses traversal the same way the publisher does. The TALES 
namespaces are what they are: Namespaces (iow, adapters) for TALES 
expressions.

> And then it appears (publication?) namespaces are classified into several
> flavors, 'adapter namespaces', 'view namespaces'. and 'pluggable
> namespaces'.

While this is not an implemented distinction, it is probably is a logical one.

> I've looked for a restructured text doc in the Zope3 source tree that
> covers namespaces in a comprehensive way but haven't found it yet.  We need
> one in the zope/app/traversing directory.

I totally agree!

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list