Thread: [Epydoc-commits] SF.net SVN: epydoc: [1483] trunk/epydoc/src/epydoc/apidoc.py (Page 2)
Brought to you by:
edloper
From: <ed...@us...> - 2007-02-13 22:39:39
|
Revision: 1483 http://svn.sourceforge.net/epydoc/?rev=1483&view=rev Author: edloper Date: 2007-02-13 14:39:34 -0800 (Tue, 13 Feb 2007) Log Message: ----------- - Added check in DocIndex._get_module_classes to make sure we don't try to access the canonical name of a value if it doesn't have one yet (since this gets called before we assign canonical names to all APIDocs). Modified Paths: -------------- trunk/epydoc/src/epydoc/apidoc.py Modified: trunk/epydoc/src/epydoc/apidoc.py =================================================================== --- trunk/epydoc/src/epydoc/apidoc.py 2007-02-13 22:23:50 UTC (rev 1482) +++ trunk/epydoc/src/epydoc/apidoc.py 2007-02-13 22:39:34 UTC (rev 1483) @@ -1893,6 +1893,8 @@ val = var.value if val in (None, UNKNOWN) or val.defining_module is not doc: continue + if val.canonical_name in (None, UNKNOWN): + continue name = val.canonical_name[-1] vals = classes.get(name) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dva...@us...> - 2007-02-15 23:53:22
|
Revision: 1509 http://svn.sourceforge.net/epydoc/?rev=1509&view=rev Author: dvarrazzo Date: 2007-02-15 15:53:21 -0800 (Thu, 15 Feb 2007) Log Message: ----------- - Fixed `ValueDoc.is_detailed()` when there are details in the variable, but not in the value. Modified Paths: -------------- trunk/epydoc/src/epydoc/apidoc.py Modified: trunk/epydoc/src/epydoc/apidoc.py =================================================================== --- trunk/epydoc/src/epydoc/apidoc.py 2007-02-15 19:48:33 UTC (rev 1508) +++ trunk/epydoc/src/epydoc/apidoc.py 2007-02-15 23:53:21 UTC (rev 1509) @@ -677,8 +677,10 @@ return [self.value] def is_detailed(self): - if (self.value in (None, UNKNOWN)): - return super(VariableDoc, self).is_detailed() + pval = super(VariableDoc, self).is_detailed() + if pval or self.value in (None, UNKNOWN): + return pval + if isinstance(self.value, GenericValueDoc): # [XX] This is a little hackish -- we assume that the # summary lines will have SUMMARY_REPR_LINELEN chars, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ed...@us...> - 2007-02-27 00:07:58
|
Revision: 1553 http://svn.sourceforge.net/epydoc/?rev=1553&view=rev Author: edloper Date: 2007-02-26 16:07:56 -0800 (Mon, 26 Feb 2007) Log Message: ----------- - VariableDoc's containing routines with overrides != None should return true for is_detailed() Modified Paths: -------------- trunk/epydoc/src/epydoc/apidoc.py Modified: trunk/epydoc/src/epydoc/apidoc.py =================================================================== --- trunk/epydoc/src/epydoc/apidoc.py 2007-02-26 23:12:41 UTC (rev 1552) +++ trunk/epydoc/src/epydoc/apidoc.py 2007-02-27 00:07:56 UTC (rev 1553) @@ -681,6 +681,10 @@ if pval or self.value in (None, UNKNOWN): return pval + if (self.overrides not in (None, UNKNOWN) and + isinstance(self.value, RoutineDoc)): + return True + if isinstance(self.value, GenericValueDoc): # [XX] This is a little hackish -- we assume that the # summary lines will have SUMMARY_REPR_LINELEN chars, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ed...@us...> - 2007-09-24 00:49:05
|
Revision: 1628 http://epydoc.svn.sourceforge.net/epydoc/?rev=1628&view=rev Author: edloper Date: 2007-09-23 17:48:48 -0700 (Sun, 23 Sep 2007) Log Message: ----------- - Added 'strict' option to DottedName constructor -- if true, then raise an exception if we see an ill-formed name. Modified Paths: -------------- trunk/epydoc/src/epydoc/apidoc.py Modified: trunk/epydoc/src/epydoc/apidoc.py =================================================================== --- trunk/epydoc/src/epydoc/apidoc.py 2007-09-24 00:48:14 UTC (rev 1627) +++ trunk/epydoc/src/epydoc/apidoc.py 2007-09-24 00:48:48 UTC (rev 1628) @@ -83,7 +83,7 @@ """A cache of identifier strings that have been checked against _IDENTIFIER_RE and found to be acceptable.""" - def __init__(self, *pieces): + def __init__(self, *pieces, **options): """ Construct a new dotted name from the given sequence of pieces, each of which can be either a C{string} or a C{DottedName}. @@ -98,6 +98,9 @@ of values. In that case, that tuple will be used as the C{DottedName}'s identifiers; it will I{not} be checked to see if it's valid. + + @kwparam strict: if true, then raise an L{InvalidDottedName} + if the given name is invalid. """ if len(pieces) == 1 and isinstance(pieces[0], tuple): self._identifiers = pieces[0] # Optimization @@ -112,10 +115,14 @@ for subpiece in piece.split('.'): if piece not in self._ok_identifiers: if not self._IDENTIFIER_RE.match(subpiece): - #raise DottedName.InvalidDottedName( - # 'Bad identifier %r' % (piece,)) - log.warning("Identifier %r looks suspicious; " - "using it anyway." % piece) + if options.get('strict'): + raise DottedName.InvalidDottedName( + 'Bad identifier %r' % (piece,)) + else: + raise DottedName.InvalidDottedName( + 'Bad identifier %r' % (piece,)) + log.warning("Identifier %r looks suspicious; " + "using it anyway." % piece) self._ok_identifiers.add(piece) self._identifiers.append(subpiece) else: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ed...@us...> - 2007-09-26 18:44:20
|
Revision: 1655 http://epydoc.svn.sourceforge.net/epydoc/?rev=1655&view=rev Author: edloper Date: 2007-09-26 11:44:11 -0700 (Wed, 26 Sep 2007) Log Message: ----------- - Made warning about bases that don't appear to be classes a little more explicit. Modified Paths: -------------- trunk/epydoc/src/epydoc/apidoc.py Modified: trunk/epydoc/src/epydoc/apidoc.py =================================================================== --- trunk/epydoc/src/epydoc/apidoc.py 2007-09-26 18:42:41 UTC (rev 1654) +++ trunk/epydoc/src/epydoc/apidoc.py 2007-09-26 18:44:11 UTC (rev 1655) @@ -1321,8 +1321,14 @@ def _report_bad_base(self, base): if not isinstance(base, ClassDoc): + if not isinstance(base, GenericValueDoc): + base_name = base.canonical_name + elif base.parse_repr is not UNKNOWN: + base_name = base.parse_repr + else: + base_name = '%r' % base log.warning("%s's base %s is not a class" % - (self.canonical_name, base.canonical_name)) + (self.canonical_name, base_name)) elif base.proxy_for is not None: log.warning("No information available for %s's base %s" % (self.canonical_name, base.proxy_for)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ed...@us...> - 2008-01-28 23:40:30
|
Revision: 1664 http://epydoc.svn.sourceforge.net/epydoc/?rev=1664&view=rev Author: edloper Date: 2008-01-28 15:40:29 -0800 (Mon, 28 Jan 2008) Log Message: ----------- Fixed sf bug #1853339: an exception was being raised in DottedName.__init__ even when strict=False. Modified Paths: -------------- trunk/epydoc/src/epydoc/apidoc.py Modified: trunk/epydoc/src/epydoc/apidoc.py =================================================================== --- trunk/epydoc/src/epydoc/apidoc.py 2007-11-07 15:29:47 UTC (rev 1663) +++ trunk/epydoc/src/epydoc/apidoc.py 2008-01-28 23:40:29 UTC (rev 1664) @@ -119,8 +119,6 @@ raise DottedName.InvalidDottedName( 'Bad identifier %r' % (piece,)) else: - raise DottedName.InvalidDottedName( - 'Bad identifier %r' % (piece,)) log.warning("Identifier %r looks suspicious; " "using it anyway." % piece) self._ok_identifiers.add(piece) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ed...@us...> - 2008-02-01 19:53:22
|
Revision: 1710 http://epydoc.svn.sourceforge.net/epydoc/?rev=1710&view=rev Author: edloper Date: 2008-02-01 11:53:20 -0800 (Fri, 01 Feb 2008) Log Message: ----------- - Fixed spurious warning about identifiers occcuring in two groups when pre-2.4-style decorators are used. Modified Paths: -------------- trunk/epydoc/src/epydoc/apidoc.py Modified: trunk/epydoc/src/epydoc/apidoc.py =================================================================== --- trunk/epydoc/src/epydoc/apidoc.py 2008-02-01 19:47:06 UTC (rev 1709) +++ trunk/epydoc/src/epydoc/apidoc.py 2008-02-01 19:53:20 UTC (rev 1710) @@ -1082,7 +1082,7 @@ unused_groups.discard(ident) if elt_name in ungrouped: group.append(ungrouped.pop(elt_name)) - else: + elif elt_name not in set(idents): log.warning("%s.%s in multiple groups" % (self.canonical_name, elt_name)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |