[Zope-Checkins] SVN: Zope/trunk/src/HelpSys/APIHelpTopic.py Merge 105060 from branch 2.12: 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:57:25 EDT 2009


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

Changed:
  U   Zope/trunk/src/HelpSys/APIHelpTopic.py

-=-
Modified: Zope/trunk/src/HelpSys/APIHelpTopic.py
===================================================================
--- Zope/trunk/src/HelpSys/APIHelpTopic.py	2009-10-14 08:54:58 UTC (rev 105061)
+++ Zope/trunk/src/HelpSys/APIHelpTopic.py	2009-10-14 08:57:25 UTC (rev 105062)
@@ -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