From: W. Trevor King Date: Mon, 22 Jun 2009 13:15:22 +0000 (-0400) Subject: Adjusted comment XML fields for consistency. X-Git-Tag: 1.0.0~71^2~6^2~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=447c4f625d22a27134d333cd6ccc211acb5d3922;p=be.git Adjusted comment XML fields for consistency. Renamed "name" -> "short-name" and "in_reply_to" -> "in-reply-to". Reordered uuid before short-name. --- 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,