[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py
We do not want to store aliases. They are evil for apidoc. Thanks to
Stephan Richter
srichter at cosmos.phy.tufts.edu
Fri Jul 16 08:33:24 EDT 2004
Log message for revision 26579:
We do not want to store aliases. They are evil for apidoc. Thanks to
Marius again for finding the bug and providing the fix.
Changed:
U Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py
-=-
Modified: Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py 2004-07-16 12:13:13 UTC (rev 26578)
+++ Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py 2004-07-16 12:33:24 UTC (rev 26579)
@@ -223,7 +223,8 @@
if hasattr(attr, '__module__') and \
attr.__module__ == self.__module.__name__:
- if type(attr) in (ClassType, TypeType):
+ if type(attr) in (ClassType, TypeType) and \
+ attr.__name__ == name:
self.__children[attr.__name__] = Class(self, name, attr)
elif type(attr) is FunctionType and not name.startswith('_'):
More information about the Zope3-Checkins
mailing list