[Checkins] SVN: z3c.unconfigure/trunk/src/z3c/unconfigure/README.txt Add a failing test
Wichert Akkerman
wichert at wiggy.net
Wed Jun 17 05:39:05 EDT 2009
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:
<configure xmlns="http://namespaces.zope.org/zope">
<exclude package="plone.contentrules" />
<exclude package="plone.app.contentrules" />
</configure>
and I added a test to see if that worked:
def testNoContentRulesRegistered(self):
# Testing for event subscribers would be the cleanest approach,
# but is hard to do. Instead we test for extra marker
# interfaces set by the plone.app.contentrules zcml.
from plone.contentrules.engine.interfaces import IRuleAssignable
self.failUnless(not IRuleAssignable.providedBy(self.portal))
the test fails, so the exclude directive had no effect.
Wichert.
More information about the Checkins
mailing list