aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/comment.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-11-21 10:53:04 -0500
committerW. Trevor King <wking@drexel.edu>2009-11-21 10:53:04 -0500
commit3b168403ff5e50d767476c4c0f037d1841bb2bf9 (patch)
tree1929369aed3b5b4b0b6c87b27c92732798d0714a /libbe/comment.py
parent75fedab07f9e566ca1c984051d7deece4d910e2c (diff)
downloadbugseverywhere-3b168403ff5e50d767476c4c0f037d1841bb2bf9.tar.gz
Broke `be comment --xml` out and extended into `be import-xml`.
It should currently do everything that `be comment --xml` did, but it still has a way to go before it lives up to it's longhelp string, mostly figuring out bug/comment merging. The allowed XML format also changed a bit, becoming a bit more structured. cmdutil.bug_from_shortname() renamed to cmdutil.bug_from_id(). New functions cmdutil.parse_id() and cmdutil.bug_comment_from_id(). Additional doctests in libbe.comment.Comment.comment_shortnames() to show example output if bug_shortname==None. Brought be-xml-to-mbox and be-mbox-to-xml up to speed on the current <be-xml>-rooted format. * Added <extra-string> handling to their comment handling. * Moved extra strings from email bodies to X-Extra-String headers (some comment bodies are not text, and we should keep the estr location consistent between bugs and comments.)
Diffstat (limited to 'libbe/comment.py')
-rw-r--r--libbe/comment.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbe/comment.py b/libbe/comment.py
index 678d8ba..5cc43c4 100644
--- a/libbe/comment.py
+++ b/libbe/comment.py
@@ -641,6 +641,12 @@ class Comment(Tree, settings_object.SavedSettingsObject):
bug-1:2 b
bug-1:3 c
bug-1:4 d
+ >>> for id,name in a.comment_shortnames():
+ ... print id, name.uuid
+ :1 a
+ :2 b
+ :3 c
+ :4 d
"""
if bug_shortname == None:
bug_shortname = ""