[ZPT] RFC: TALES adapters and TAL/Tales variable namespaces

Jim Fulton jim at zope.com
Thu May 20 04:41:20 EDT 2004


Evan Simpson wrote:
> Jim Fulton wrote:
> 
>> I've posted two proposals:
>>
>>   http://dev.zope.org/Zope3/TALESPathExpressionAdapters
>>
>> Proposes a mechanism for easily using adapters in TALES expressions.
> 
> 
> I'm not at all clear on how the proposed mechanism is superior to the 
> implementation of path segment prefixes that exists in Zope 2.   This
> differs from the namespace proposal that you cite, in that the object 
> named on the left of the colon is not a namespace or adapter.  It is 
> simply a registered name that is associated with code that interprets 
> the text to the right of the colon.  This allows constuctions such as 
> "a/sequence/index:2" (a.sequence[2]), "a/bag/var:x/call:" (a.bag[x]()), 
> and "an/object/adapt:foo.bar" (foo.bar(an.object)).

I thought you had proposed this, but I couldn't find a proposal
or documentation.

You say this is implemented in Zope 2? Where is it documented?

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org




More information about the ZPT mailing list