Added Bug.from_xml() + some .from_xml() fixups.
authorW. Trevor King <wking@drexel.edu>
Fri, 20 Nov 2009 22:09:08 +0000 (17:09 -0500)
committerW. Trevor King <wking@drexel.edu>
Fri, 20 Nov 2009 22:09:08 +0000 (17:09 -0500)
commit75fedab07f9e566ca1c984051d7deece4d910e2c
treebd986b4758653212b2ea580b8ab0bd29e3faa424
parentccfd3f9b65eba4535d7975395dc689eea40b0547
Added Bug.from_xml() + some .from_xml() fixups.

Moved comment.InvalidXML to utility.InvalidXML, so that bug and
comment can share it.  Added docstring explaining the __init__
arguments.

Added indent and shortname options to Bug.xml() to match
Comment.xml().

Added .extra_strings export to Comment.xml().

Converted Bug.xml() from string addition to list joining, which avoids
a bunch of memory allocation/deallocation.

Assorted " -> ' replacements.

Elaborated doctests to check UTF-8, extra_strings, ...

Added new comparison cmp_extra_strings for both bug. and
comment.DEFAULT_CMP_FULL_CMP_LIST.
libbe/bug.py
libbe/comment.py
libbe/utility.py