[Checkins] SVN: z3c.unconfigure/trunk/src/z3c/unconfigure/README.txt Add a failing test

Wichert Akkerman wichert at wiggy.net
Wed Jun 17 05:48:52 EDT 2009


On 6/17/09 11:43 AM, Hanno Schlichting wrote:
> On Wed, Jun 17, 2009 at 11:39 AM, Wichert Akkerman<wichert at wiggy.net>  wrote:
>> On 6/17/09 11:35 AM, Hanno Schlichting wrote:
>>> On Wed, Jun 17, 2009 at 11:31 AM, Wichert Akkerman<wichert at wiggy.net>
>>>   wrote:
>>>> On 6/17/09 11:30 AM, Hanno Schlichting wrote:
>>>>> Might I suggest that you upgrade to zope.configuration 3.6.0 and use
>>>>> the new exclude directive instead.
>>>> Does that work in Zope 2.10?
>>> Looking at http://pypi.python.org/pypi/zope.configuration I don't see
>>> anything in the changelog that could cause any incompatibilities. You
>>> never know until you try, though ;)
>> It does not seem to have any effect. As a test I used this overrides.zcml:
>
> Looking into the documentation it states:
>
> "The ``exclude`` standard directive is provided for inhibiting
> unwanted configuration. It is used to exclude processing of
> configuration files. It is useful when including a configuration that
> includes some other configuration that you don't want.
>
> It must be used BEFORE including the files to be excluded."
>
> So using it in an overrides won't work indeed.

That restriction pretty much makes the whole exclude directive useless 
in a modular system. In Plone I can probably get away with putting 
exclude directives in meta.zcml of my policy package since that should 
get loaded before Plone's configure.zcml, but generally that does not hold.

Wichert.


More information about the Checkins mailing list