From: W. Trevor King Date: Mon, 22 Jun 2009 14:02:11 +0000 (-0400) Subject: Fixed libbe.settings_object.EMPTY output in bug/comment XML. X-Git-Tag: 1.0.0~71^2~6^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=22aad60c0372e7a573ee2f9b908c11c96c48468f;p=be.git Fixed libbe.settings_object.EMPTY output in bug/comment XML. The xml() method hadn't been updated since the settings_object revamp. --- diff --git a/libbe/bug.py b/libbe/bug.py index fe059fa..59b011b 100644 --- a/libbe/bug.py +++ b/libbe/bug.py @@ -260,7 +260,7 @@ class Bug(settings_object.SavedSettingsObject): ("summary", self.summary)] ret = '\n' for (k,v) in info: - if v is not None: + if v is not settings_object.EMPTY: ret += ' <%s>%s\n' % (k,v,k) if show_comments == True: diff --git a/libbe/comment.py b/libbe/comment.py index 78a6b6a..8d03a7b 100644 --- a/libbe/comment.py +++ b/libbe/comment.py @@ -237,7 +237,7 @@ class Comment(Tree, settings_object.SavedSettingsObject): lines = ["", " %s" % self.uuid, " %s" % (shortname,),] - if self.in_reply_to != None: + if self.in_reply_to != settings_object.EMPTY: lines.append(" %s" % self.in_reply_to) lines.extend([ " %s" % self._setting_attr_string("From"),