[Checkins] SVN: zope.app.apidoc/trunk/s Include docs for hookable functions

Shane Hathaway shane at hathawaymix.org
Tue Feb 3 18:24:13 EST 2009


Log message for revision 96052:
  Include docs for hookable functions
  

Changed:
  U   zope.app.apidoc/trunk/setup.py
  U   zope.app.apidoc/trunk/src/zope/app/apidoc/codemodule/module.py

-=-
Modified: zope.app.apidoc/trunk/setup.py
===================================================================
--- zope.app.apidoc/trunk/setup.py	2009-02-03 22:46:51 UTC (rev 96051)
+++ zope.app.apidoc/trunk/setup.py	2009-02-03 23:24:13 UTC (rev 96052)
@@ -86,6 +86,7 @@
         'zope.deprecation',
         'zope.i18n',
         'zope.site',
+        'zope.hookable',
         'zope.interface',
         'zope.location',
         'zope.proxy',

Modified: zope.app.apidoc/trunk/src/zope/app/apidoc/codemodule/module.py
===================================================================
--- zope.app.apidoc/trunk/src/zope/app/apidoc/codemodule/module.py	2009-02-03 22:46:51 UTC (rev 96051)
+++ zope.app.apidoc/trunk/src/zope/app/apidoc/codemodule/module.py	2009-02-03 23:24:13 UTC (rev 96052)
@@ -25,6 +25,7 @@
 from zope.interface.interface import InterfaceClass
 from zope.location.interfaces import ILocation
 from zope.location import LocationProxy
+from zope.hookable import hookable
 
 from zope.app.apidoc.classregistry import safe_import
 from zope.app.apidoc.utilities import ReadContainerBase
@@ -127,6 +128,9 @@
             if attr is None:
                 continue
 
+	    if isinstance(attr, hookable):
+		attr = attr.implementation
+
             if isinstance(attr, (types.ClassType, types.TypeType)):
                 self._children[name] = Class(self, name, attr)
 



More information about the Checkins mailing list