[Checkins] SVN: zope.generic/trunk/src/zope/generic/ fix broken test
Dominik Huber
dominik.huber at perse.ch
Sun Apr 9 22:31:22 EDT 2006
Log message for revision 66756:
fix broken test
Changed:
U zope.generic/trunk/src/zope/generic/configuration/testing.py
U zope.generic/trunk/src/zope/generic/information/NEW_README.txt
-=-
Modified: zope.generic/trunk/src/zope/generic/configuration/testing.py
===================================================================
--- zope.generic/trunk/src/zope/generic/configuration/testing.py 2006-04-10 01:09:35 UTC (rev 66755)
+++ zope.generic/trunk/src/zope/generic/configuration/testing.py 2006-04-10 02:31:22 UTC (rev 66756)
@@ -92,7 +92,7 @@
class PlacelessSetup2(PlacelessSetup):
def setUp(self, doctesttest=None):
- super(PlacelessSetup, self).setUp(doctesttest)
+ super(PlacelessSetup2, self).setUp(doctesttest)
setup.setUpTestAsModule(doctesttest, 'zope.generic.example')
placelesssetup2 = PlacelessSetup2()
Modified: zope.generic/trunk/src/zope/generic/information/NEW_README.txt
===================================================================
--- zope.generic/trunk/src/zope/generic/information/NEW_README.txt 2006-04-10 01:09:35 UTC (rev 66755)
+++ zope.generic/trunk/src/zope/generic/information/NEW_README.txt 2006-04-10 02:31:22 UTC (rev 66756)
@@ -101,6 +101,24 @@
... def log(self, message):
... id = IInformationDeclaration(self.context())
... info = queryInformation(id.interface, ILogUserInformation)
+ >>> class Logger(object):
+ ... """Generic logger adapter."""
+ ... implements(ILogger)
+ ... adapts(IInformationDeclaration)
+ ... def __init__(self, context):
+ ... self.context = context
+ ... def log(self, message):
+ ... id = IInformationDeclaration(self.context())
+ ... info = queryInformation(id.interface, ILogUserInformation)
+ >>> class Logger(object):
+ ... """Generic logger adapter."""
+ ... implements(ILogger)
+ ... adapts(IInformationDeclaration)
+ ... def __init__(self, context):
+ ... self.context = context
+ ... def log(self, message):
+ ... id = IInformationDeclaration(self.context())
+ ... info = queryInformation(id.interface, ILogUserInformation)
More information about the Checkins
mailing list