[Epydoc-commits] SF.net SVN: epydoc: [1640] trunk/epydoc/src/epydoc/docwriter/html.py
Brought to you by:
edloper
From: <dva...@us...> - 2007-09-24 22:46:12
|
Revision: 1640 http://epydoc.svn.sourceforge.net/epydoc/?rev=1640&view=rev Author: dvarrazzo Date: 2007-09-24 15:46:11 -0700 (Mon, 24 Sep 2007) Log Message: ----------- - Check the container is really a namespace: in case of masked modules, container() may return the wrong object. An example is SQLAlchemy 0.3.10: the MapperExtension class appears contained in... the mapper() function! (which actually hides the mapper module). Modified Paths: -------------- trunk/epydoc/src/epydoc/docwriter/html.py Modified: trunk/epydoc/src/epydoc/docwriter/html.py =================================================================== --- trunk/epydoc/src/epydoc/docwriter/html.py 2007-09-24 21:39:48 UTC (rev 1639) +++ trunk/epydoc/src/epydoc/docwriter/html.py 2007-09-24 22:46:11 UTC (rev 1640) @@ -3054,7 +3054,7 @@ def _val_is_public(self, valdoc): """Make a best-guess as to whether the given class is public.""" container = self.docindex.container(valdoc) - if container is not None: + if isinstance(container, NamespaceDoc): for vardoc in container.variables.values(): if vardoc in (UNKNOWN, None): continue if vardoc.value is valdoc: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |