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

2006-04-06 Thread Stephan Richter
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++', and 'TALES namespaces' e.g. 'zope:', 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
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


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

2006-04-05 Thread Jeff Rush

jürgen Kartnaller wrote:

Jeff Rush wrote:


I need control over which namespace is searched, so I added a couple of
generic TALES namespace adapters.  Now I can do:

 



How about :



to -only- search for a name attribute, and (less frequently):

 






Thanks, Jürgen, I was unaware of those.  I didn't see them in either of
the Zope books nor the ++apidoc++ subsystem.

Now I'm a bit confused -- there seem to be 'publication namespaces' e,g. 
'++resource++', and 'TALES namespaces' e.g. 'zope:', 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.


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


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.


-Jeff

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users