[Checkins] SVN: GenericSetup/branches/1.3/ Remove debugging code

Wichert Akkerman wichert at wiggy.net
Tue Aug 7 08:49:12 EDT 2007


Log message for revision 78664:
  Remove debugging code

Changed:
  U   GenericSetup/branches/1.3/components.py
  U   GenericSetup/branches/1.3/tests/test_components.py

-=-
Modified: GenericSetup/branches/1.3/components.py
===================================================================
--- GenericSetup/branches/1.3/components.py	2007-08-07 12:31:40 UTC (rev 78663)
+++ GenericSetup/branches/1.3/components.py	2007-08-07 12:49:11 UTC (rev 78664)
@@ -208,8 +208,6 @@
         site = aq_base(self._getSite())
 
         for reg_info in registrations:
-            if reg_info["name"]==u'dummy utility name':
-                import pdb ; pdb.set_trace()
             child = self._doc.createElement('utility')
 
             child.setAttribute('interface', reg_info['provided'])

Modified: GenericSetup/branches/1.3/tests/test_components.py
===================================================================
--- GenericSetup/branches/1.3/tests/test_components.py	2007-08-07 12:31:40 UTC (rev 78663)
+++ GenericSetup/branches/1.3/tests/test_components.py	2007-08-07 12:49:11 UTC (rev 78664)
@@ -69,9 +69,7 @@
     def verify(self):
         return True
 
-dummy_utility = DummyUtility()
 
-
 class DummyTool(SimpleItem):
     """A dummy tool."""
     implements(IDummyInterface)
@@ -115,9 +113,6 @@
   <utility name="dummy tool name2"
      interface="Products.GenericSetup.tests.test_components.IDummyInterface"
      object="dummy_tool2"/>
-  <utility name="dummy utility name"
-     component="Products.GenericSetup.tests.test_components.dummy_utility"
-     interface="Products.GenericSetup.tests.test_components.IDummyInterface"/>
   <utility name="foo"
      factory="Products.GenericSetup.tests.test_components.DummyUtility"
      interface="Products.GenericSetup.tests.test_components.IDummyInterface"/>
@@ -140,9 +135,6 @@
         tool2 = aq_base(self.app['dummy_tool2'])
         obj.registerUtility(tool2, IDummyInterface, name=u'dummy tool name2')
 
-        obj.registerUtility(dummy_utility, IDummyInterface,
-                            name=u'dummy utility name')
-
     def test_body_get(self):
         self._populate(self._obj)
         context = DummyExportContext(self.app)
@@ -179,10 +171,6 @@
         self.failUnless(IDummyInterface.providedBy(util))
         self.failUnless(util.verify())
 
-        util = queryUtility(IDummyInterface, name=u'dummy utility name')
-        self.failUnless(IDummyInterface.providedBy(util))
-        self.failUnless(util.verify())
-
         util = queryUtility(IDummyInterface)
         self.failUnless(IDummyInterface.providedBy(util))
         self.failUnless(util.verify())



More information about the Checkins mailing list