[Zope3-dev] Re: [z3-five] zcml questions
Chris Withers
chris at simplistix.co.uk
Mon Sep 25 13:41:54 EDT 2006
Tres Seaver wrote:
>>> How should I do things such that they can do that?
>> I'm just wondering whether you really need the disabling feature.
>
> I've wanted it. My major beef with the way we are *using* ZCML now is
> that we expect package authors to provide policy-laden configuration for
> their packages ("sensible defaults") but provide no means for the admin
> to reuse that configuration selectively; their only realy choice is to
> *copy* the configuration and edit it.
Yes indeed.
> I argued *long* ago (after the first ZC-internal Zope3 sprint, I think)
> that the '<include>' directive should be allowed to be complex, with
> subelements like '<except>' or '<only>' to pull in specific directives.
This sounds a bit heavyweight, how about just a "disable" thingy:
<disable path="/some/xpath/here"/>
> (e.g., a 'zcml:id' attribute). It would *also* require that we
> implement the "no side-effects during parsing" policy (my other favorite
> "dead horse" in arguments about ZCML's implementation / usage).
...yep, my "disable" idea needs this too!
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope3-dev
mailing list