[Zope-Checkins] SVN: Zope/branches/2.12/src/HelpSys/APIHelpTopic.py Fix HelpSys to work with zope.interface.Interface as it did before the deprecated methods of scarecrow Interface.Interface were removed.

Leonardo Rochael Almeida leorochael at gmail.com
Wed Oct 14 04:54:26 EDT 2009


Log message for revision 105060:
  Fix HelpSys to work with zope.interface.Interface as it did before the deprecated methods of scarecrow Interface.Interface were removed.

Changed:
  U   Zope/branches/2.12/src/HelpSys/APIHelpTopic.py

-=-
Modified: Zope/branches/2.12/src/HelpSys/APIHelpTopic.py
===================================================================
--- Zope/branches/2.12/src/HelpSys/APIHelpTopic.py	2009-10-14 08:35:10 UTC (rev 105059)
+++ Zope/branches/2.12/src/HelpSys/APIHelpTopic.py	2009-10-14 08:54:25 UTC (rev 105060)
@@ -48,8 +48,8 @@
                 if type(v)==types.ClassType:
                     # A class.
                     self.apis.append(APIDoc(v, 0))
-                elif (hasattr(v, 'isImplementedByInstancesOf')):
-                    # A scarecrow interface.
+                elif (hasattr(v, 'implementedBy')):
+                    # A zope.interface.Interface.
                     self.apis.append(APIDoc(v, 1))
                 elif type(v)==types.FunctionType:
                     # A function



More information about the Zope-Checkins mailing list