[Checkins] SVN: zope.app.apidoc/trunk/src/zope/app/apidoc/codemodule/module.py If there is something the same name beneath, then module should have priority.
Yusei Tahara
yusei at domen.cx
Thu Apr 23 11:11:16 EDT 2009
Log message for revision 99417:
If there is something the same name beneath, then module should have priority.
Changed:
U zope.app.apidoc/trunk/src/zope/app/apidoc/codemodule/module.py
-=-
Modified: zope.app.apidoc/trunk/src/zope/app/apidoc/codemodule/module.py
===================================================================
--- zope.app.apidoc/trunk/src/zope/app/apidoc/codemodule/module.py 2009-04-23 04:59:07 UTC (rev 99416)
+++ zope.app.apidoc/trunk/src/zope/app/apidoc/codemodule/module.py 2009-04-23 15:11:16 UTC (rev 99417)
@@ -124,6 +124,11 @@
names.append(name)
for name in names:
+ # If there is something the same name beneath, then module should
+ # have priority.
+ if name in self._children:
+ continue
+
attr = getattr(self._module, name, None)
if attr is None:
continue
More information about the Checkins
mailing list