{Spam?} Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces
Of course, Steve suggested:
ob:adaptername context:dc/title
This really doesn't make sense. To me it reads "In the namespace of context get the title of dublin core".
I'm not reading ":" as having anything to do with namespaces. Rather, I see '/' as the "traverse" operator, and ":" as the "adapt" operator. -- Steve Alexander
On Mon, 24 May 2004 17:25:19 +0300 Steve Alexander <steve@z3u.com> wrote:
Of course, Steve suggested:
ob:adaptername context:dc/title
This really doesn't make sense. To me it reads "In the namespace of context get the title of dublin core".
I'm not reading ":" as having anything to do with namespaces. Rather, I see '/' as the "traverse" operator, and ":" as the "adapt" operator.
Understood, that's just how it reads to me. Adapters are in a sense like mini-namespaces, enough so that I think it is confusing to reuse the XML namespace token here. -Casey
Steve Alexander wrote:
Of course, Steve suggested:
ob:adaptername context:dc/title
This really doesn't make sense. To me it reads "In the namespace of context get the title of dublin core".
I'm not reading ":" as having anything to do with namespaces. Rather, I see '/' as the "traverse" operator, and ":" as the "adapt" operator.
Right, and the "adapt" operator can be thought of as a specialized form of traversal. Jim -- Jim Fulton mailto:jim@zope.com Python Powered! CTO (540) 361-1714 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org
participants (3)
-
Casey Duncan -
Jim Fulton -
Steve Alexander