[Zope-dev] Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-06-02 Thread Chris Withers
How does: take adapter, apply to it object with name as a parameter That's close to the meaning of Even Simpson's Zope 2 ':' extension. Which is why we don't want to use this syntax for adapters. ...differ from: Well, what we did in bristol, enabled: my_content_object/zope:title Which really

[Zope-dev] Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-06-02 Thread Jim Fulton
Chris Withers wrote: How does: take adapter, apply to it object with name as a parameter That's close to the meaning of Even Simpson's Zope 2 ':' extension. Which is why we don't want to use this syntax for adapters. ...differ from: Well, what we did in bristol, enabled:

[Zope-dev] Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-06-02 Thread Jim Fulton
I've updated http://dev.zope.org/Zope3/TALESPathExpressionAdapters based on comments to date. I think we are narrowing down on a short syntx of the form: ob/##adaptername where '#' is some character. See the proposal for reasons. I've also given the current status there. Jim Jim Fulton wrote:

[Zope-dev] Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-06-01 Thread Jim Fulton
Chris Withers wrote: ... I thought we had this whole discussion about 1-2 years ago, and I REMEMBER writing CODE for this back then that involved : as the adapter indicator. Yup. We implemented: ob/adapter:name which is equivalent to: ob/adapter:/name and, in fact, you can say just:

[Zope-dev] Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-06-01 Thread Chris Withers
Jim Fulton wrote: Yup. We implemented: ob/adapter:name ...which to me says: take adapter, apply to it object with name as a parameter ...what I'd like it to say would give meaning to: my_content_object/zapi:title ...meaning apply the title adapter from the zapi package to my_content_object,

[Zope-dev] Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-06-01 Thread Jim Fulton
Chris Withers wrote: Jim Fulton wrote: Yup. We implemented: ob/adapter:name ...which to me says: take adapter, apply to it object with name as a parameter That's close to the meaning of Even Simpson's Zope 2 ':' extension. Which is why we don't want to use this syntax for adapters. ...what I'd

[Zope-dev] Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-05-31 Thread Chris Withers
Garrett Smith wrote: I want to thank everyone who's participating in this thread. The input is extremely valuable. This might get an award for longest thread before The Edict is handed down ;) Yeah, and I have to admit being a bemused bystander... I thought we had this whole discussion about 1-2

[Zope-dev] Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-05-28 Thread Stephan Richter
On Friday 28 May 2004 02:48, Philipp von Weitershausen wrote: Garrett Smith wrote: This problem seems analogous to view lookup -- content/++view++index.html and content/@@index.html are equivalent. So, applied to adapters, we could use:   content/++adapter++dc/title (or '++adapt++')

[Zope-dev] Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-05-28 Thread Stephan Richter
On Friday 28 May 2004 11:21, Garrett Smith wrote:    context/##dc/title Not so good; looks convoluted.    context/**dc/title This one looks good. Remind me of the power of a number, like dc takes over context. :-)    context/::dc/title I am fine with this one as well. Regards, Stephan --

[Zope-dev] Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-05-28 Thread Stephan Richter
On Friday 28 May 2004 11:21, Garrett Smith wrote: What was the reasoning behind selecting @@ for the view namespace shortcut? Because it looks like two eyes. (IIRC, the motivation was to use characters that could be used in URLs, but I'm not sure that's an issue for adapters...or is it?)

[Zope-dev] Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-05-28 Thread Jim Fulton
Garrett Smith wrote: What was the reasoning behind selecting @@ for the view namespace shortcut? (IIRC, the motivation was to use characters that could be used in URLs, but I'm not sure that's an issue for adapters...or is it?) Legal in urls, no English. @@ looks like two eyes viwing something.

[Zope-dev] Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-05-27 Thread Jim Fulton
Casey Duncan wrote: On Fri, 21 May 2004 09:07:24 -0400 Jim Fulton [EMAIL PROTECTED] 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.

[Zope-dev] Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-05-27 Thread Paul Winkler
On Thu, May 27, 2004 at 10:00:50PM +0200, Tonico Strasser wrote: Jim Fulton wrote: On IRC, Martijn Faassen suggested (brainstormed really :) '#', as in: context#dc/title I like this becase # kinda looks like a special kind of slash. :) Looks ok to me. Hm, special kind of slash ...

[Zope-dev] Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-05-19 Thread Jim Fulton
Casey Duncan wrote: On Wed, 19 May 2004 16:00:43 -0400 Jim Fulton [EMAIL PROTECTED] wrote: I've posted two proposals: http://dev.zope.org/Zope3/TALESPathExpressionAdapters I have to say I am not found of *, I'm not attached to '*'. Feel free to suggest alternatives (other than ':', '/', '|',