From 447c4f625d22a27134d333cd6ccc211acb5d3922 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 22 Jun 2009 09:15:22 -0400 Subject: [PATCH] Adjusted comment XML fields for consistency. Renamed "name" -> "short-name" and "in_reply_to" -> "in-reply-to". Reordered uuid before short-name. --- libbe/comment.py | 8 ++++---- 1 file 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") - com-1 0123 + com-1 Thu, 01 Jan 1970 00:00:00 +0000 Some @@ -235,10 +235,10 @@ class Comment(Tree, settings_object.SavedSettingsObject): if shortname == None: shortname = self.uuid lines = ["", - " %s" % (shortname,), - " %s" % self.uuid,] + " %s" % self.uuid, + " %s" % (shortname,),] if self.in_reply_to != None: - lines.append(" %s" % self.in_reply_to) + lines.append(" %s" % self.in_reply_to) lines.extend([ " %s" % self._setting_attr_string("From"), " %s" % self.time_string, -- 2.26.2