Re: [Zope3-dev] RFC: Reducing the amount of ZCML directives

2006-02-15 Thread Lennart Regebro
On 2/15/06, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: > Among other things, yes. The idea isn't mine though, it was Jim's and is > already in-place as of Zope 3.2/2.9. Oh, I missed that, I thought it was planned for 3.3. :-) -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Conte

Re: [Zope3-dev] RFC: Reducing the amount of ZCML directives

2006-02-15 Thread Philipp von Weitershausen
Lennart Regebro wrote: > I think I agree. This to me makes sense. If it were nameless (are > there nameless utilities) you could then get off with just component=".alias.sydneyFactory" /> which is then the on/off switch we > mentioned earlier. And an adapter should be registered the same way > a

Re: [Zope3-dev] RFC: Reducing the amount of ZCML directives

2006-02-14 Thread Lennart Regebro
On 2/14/06, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: > component=".alias.sydneyFactory" > name="alias.SydneyBristow" > /> > > The naming of the component already gives it away as a factory. To me that's > enough naming. I think I agree. This to me makes sense. If i

Re: [Zope3-dev] RFC: Reducing the amount of ZCML directives

2006-02-13 Thread Philipp von Weitershausen
Martijn Faassen wrote: > Philipp von Weitershausen wrote: > > Lennart Regebro wrote: > > > >>Uhm. -1, actually. I think getting things out of ZCML is a good idea, > >>but I think this shoots slightly beside the goal. This proposal aims > >>mostly at getting rid of statements that can be done with o

Re: [Zope3-dev] RFC: Reducing the amount of ZCML directives

2006-02-13 Thread Philipp von Weitershausen
Martijn Faassen wrote: > I would like to highlight Lennart's point. We need to be very careful > here. We would only have an illusion of improvement if we'd end up with > less directives but more long dotted names into Python packages. I'd > argue that this might make ZCML *harder* to understand, n

Re: [Zope3-dev] RFC: Reducing the amount of ZCML directives

2006-02-13 Thread Martijn Faassen
Philipp von Weitershausen wrote: Lennart Regebro wrote: Uhm. -1, actually. I think getting things out of ZCML is a good idea, but I think this shoots slightly beside the goal. This proposal aims mostly at getting rid of statements that can be done with other statetements, but using more lines.

Re: [Zope3-dev] RFC: Reducing the amount of ZCML directives

2006-02-13 Thread Martijn Faassen
Lennart Regebro wrote: On 2/13/06, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: Hi all, looking for your comments at http://dev.zope.org/Zope3/ReducingTheAmountOfZCMLDirectives :) This is a "formal" follow-up on my blog post on ZCML a while back (http://www.z3lab.org/sections/blogs/ph

Re: [Zope3-dev] RFC: Reducing the amount of ZCML directives

2006-02-13 Thread Lennart Regebro
On 2/13/06, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: > What internals? That a factory is a utility? What interfaces to use in which case, and how they all map together. Adding a page with browser:page is trivial. I don't really care that you can separately define up a whole host of ada

Re: [Zope3-dev] RFC: Reducing the amount of ZCML directives

2006-02-13 Thread Michael Kerrin
Hi Philipp, On Monday 13 February 2006 11:08, Philipp von Weitershausen wrote: > looking for your comments at > http://dev.zope.org/Zope3/ReducingTheAmountOfZCMLDirectives :) > > This is a "formal" follow-up on my blog post on ZCML a while back > (http://www.z3lab.org/sections/blogs/philipp-weiter

Re: [Zope3-dev] RFC: Reducing the amount of ZCML directives

2006-02-13 Thread Philipp von Weitershausen
Stephan Richter wrote: > On Monday 13 February 2006 06:08, Philipp von Weitershausen wrote: > > looking for your comments at > > http://dev.zope.org/Zope3/ReducingTheAmountOfZCMLDirectives :) > > I am +1 for the proposed directives, in general. Cool. > I am waiting for a proposal on the "Potentia

Re: [Zope3-dev] RFC: Reducing the amount of ZCML directives

2006-02-13 Thread Philipp von Weitershausen
Lennart Regebro wrote: > I don't think it's about saving lines, but about saving headaches. ;-) Having to remember how all of the mentioned directives work *does* give me a headache. I actually remember quite well how the utility and interface directives work and they are the replacement for most

Re: [Zope3-dev] RFC: Reducing the amount of ZCML directives

2006-02-13 Thread Stephan Richter
On Monday 13 February 2006 06:08, Philipp von Weitershausen wrote: > looking for your comments at > http://dev.zope.org/Zope3/ReducingTheAmountOfZCMLDirectives :) I am +1 for the proposed directives, in general. I am waiting for a proposal on the "Potential follow-ups" though. P.S: Please use St

Re: [Zope3-dev] RFC: Reducing the amount of ZCML directives

2006-02-13 Thread Lennart Regebro
On 2/13/06, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: > Sometimes not only using more lines, sometimes only using 2 or 3 more lines. > I'd say whoever wants to save 2 or 3 lines at the expense of indirection is > misguided. I don't think it's about saving lines, but about saving headach

Re: [Zope3-dev] RFC: Reducing the amount of ZCML directives

2006-02-13 Thread Philipp von Weitershausen
Lennart Regebro wrote: > Uhm. -1, actually. I think getting things out of ZCML is a good idea, > but I think this shoots slightly beside the goal. This proposal aims > mostly at getting rid of statements that can be done with other > statetements, but using more lines. Sometimes not only using mor

Re: [Zope3-dev] RFC: Reducing the amount of ZCML directives

2006-02-13 Thread Lennart Regebro
On 2/13/06, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: > Hi all, > > looking for your comments at > http://dev.zope.org/Zope3/ReducingTheAmountOfZCMLDirectives :) > > This is a "formal" follow-up on my blog post on ZCML a while back > (http://www.z3lab.org/sections/blogs/philipp-weitersha

Re: [Zope3-dev] RFC: Reducing the amount of ZCML directives

2006-02-13 Thread Dmitry Vasiliev
Philipp von Weitershausen wrote: Hi all, looking for your comments at http://dev.zope.org/Zope3/ReducingTheAmountOfZCMLDirectives :) +1 for deprecation of the proposed directives. Also +1 to get rid of 'rdb:gadflyRoot'. I think very few people use 'zope.app.rdb.gadfly' at all since even for

[Zope3-dev] RFC: Reducing the amount of ZCML directives

2006-02-13 Thread Philipp von Weitershausen
Hi all, looking for your comments at http://dev.zope.org/Zope3/ReducingTheAmountOfZCMLDirectives :) This is a "formal" follow-up on my blog post on ZCML a while back (http://www.z3lab.org/sections/blogs/philipp-weitershausen/2005_12_14_zcml-needs-to-do-less). I expect there will be more proposals