[Zope-Checkins]
SVN: Products.Five/branches/philikon-local-components/site/tests/dummy.py
Fix tests by making dummy site implement nothing from its
baseclasses.
Philipp von Weitershausen
philikon at philikon.de
Sat Mar 4 18:40:44 EST 2006
Log message for revision 65805:
Fix tests by making dummy site implement nothing from its baseclasses.
That way the five:localsite directive won't be confused about it already
being an IPossibleSite (which ObjectManager will be).
Changed:
U Products.Five/branches/philikon-local-components/site/tests/dummy.py
-=-
Modified: Products.Five/branches/philikon-local-components/site/tests/dummy.py
===================================================================
--- Products.Five/branches/philikon-local-components/site/tests/dummy.py 2006-03-04 23:39:55 UTC (rev 65804)
+++ Products.Five/branches/philikon-local-components/site/tests/dummy.py 2006-03-04 23:40:44 UTC (rev 65805)
@@ -15,7 +15,7 @@
$Id$
"""
-from zope.interface import implements, Interface
+from zope.interface import implements, implementsOnly, Interface
from OFS.SimpleItem import SimpleItem
from Products.Five.tests.testing import FiveTraversableFolder
@@ -25,7 +25,10 @@
class DummySite(FiveTraversableFolder):
"""A very dummy Site
"""
- implements(IDummySite)
+ # we specifically do not let this site inherit any interfaces from
+ # the superclasses so that this class does not implement
+ # IPossibleSite under any circumstances
+ implementsOnly(IDummySite)
def manage_addDummySite(self, id, REQUEST=None):
"""Add the dummy site."""
More information about the Zope-Checkins
mailing list