aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/comment.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-06-22 09:15:22 -0400
committerW. Trevor King <wking@drexel.edu>2009-06-22 09:15:22 -0400
commit447c4f625d22a27134d333cd6ccc211acb5d3922 (patch)
tree58176fe6c07a69fb2a3a2cc00973817229f573d2 /libbe/comment.py
parentbfeb35712e37acfd7f393c9ca6f9d67090dab739 (diff)
downloadbugseverywhere-447c4f625d22a27134d333cd6ccc211acb5d3922.tar.gz
Adjusted comment XML fields for consistency.
Renamed "name" -> "short-name" and "in_reply_to" -> "in-reply-to". Reordered uuid before short-name.
Diffstat (limited to 'libbe/comment.py')
-rw-r--r--libbe/comment.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbe/comment.py b/libbe/comment.py
index e5c86c7..78a6b6a 100644
--- a/libbe/comment.py
+++ b/libbe/comment.py
@@ -223,8 +223,8 @@ class Comment(Tree, settings_object.SavedSettingsObject):
>>> comm.time_string = "Thu, 01 Jan 1970 00:00:00 +0000"
>>> print comm.xml(indent=2, shortname="com-1")
<comment>
- <name>com-1</name>
<uuid>0123</uuid>
+ <short-name>com-1</short-name>
<from></from>
<date>Thu, 01 Jan 1970 00:00:00 +0000</date>
<body>Some
@@ -235,10 +235,10 @@ class Comment(Tree, settings_object.SavedSettingsObject):
if shortname == None:
shortname = self.uuid
lines = ["<comment>",
- " <name>%s</name>" % (shortname,),
- " <uuid>%s</uuid>" % self.uuid,]
+ " <uuid>%s</uuid>" % self.uuid,
+ " <short-name>%s</short-name>" % (shortname,),]
if self.in_reply_to != None:
- lines.append(" <in_reply_to>%s</in_reply_to>" % self.in_reply_to)
+ lines.append(" <in-reply-to>%s</in-reply-to>" % self.in_reply_to)
lines.extend([
" <from>%s</from>" % self._setting_attr_string("From"),
" <date>%s</date>" % self.time_string,