Re: [Zope3-dev] zcml abbreviations

2006-02-17 Thread Lennart Regebro
On 2/17/06, Shaun Cutts <[EMAIL PROTECTED]> wrote:
> But I think it can be sensibly used. There are many places in the zcml
> defs where there are long blocks of repetitive definitions where only a
> few names change. If the number of directives is seriously paired back,
> these blocks are likely to get longer and more repetitive. If you set
> the abbreviation at the top of the block, then your eye can see the
> important parts that actually change in the following section of
> "expands". And if there is something wrong with the definition, you can
> change it all in one place.

I think in this case maye some sort of complex directive would be more
useful, but it should be in the base zcml.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



RE: [Zope3-dev] zcml abbreviations

2006-02-17 Thread Shaun Cutts
> Could we call it "obfuscate" instead, so we know what it does? :-)

I take it that's a no vote from you :)

But I think it can be sensibly used. There are many places in the zcml
defs where there are long blocks of repetitive definitions where only a
few names change. If the number of directives is seriously paired back,
these blocks are likely to get longer and more repetitive. If you set
the abbreviation at the top of the block, then your eye can see the
important parts that actually change in the following section of
"expands". And if there is something wrong with the definition, you can
change it all in one place.

Of course, you could also use it to make things confusing if you wanted
to too. But if you really want to make things confusing, new zcml
directives are more effective. ;-)

- Shaun




___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] zcml abbreviations

2006-02-17 Thread Lennart Regebro
On 2/17/06, Shaun Cutts <[EMAIL PROTECTED]> wrote:
> It seems to me that some of the tension around zcml arises because, on
> the one hand, everyone wants it to be as simple as possible, and on the
> other, too much simplicity of the language makes some things very
> tedious, which encourages "magic shortcuts" via new directives.
>
> To let out some of the steam, could zcml support a very simple
> "abbreviate" directive in over all namespaces?

Could we call it "obfuscate" instead, so we know what it does? :-)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com