aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-06-22 10:02:11 -0400
committerW. Trevor King <wking@drexel.edu>2009-06-22 10:02:11 -0400
commit22aad60c0372e7a573ee2f9b908c11c96c48468f (patch)
tree11019cc27dd18a2d70c6463e6094711de87369dc /libbe
parent447c4f625d22a27134d333cd6ccc211acb5d3922 (diff)
downloadbugseverywhere-22aad60c0372e7a573ee2f9b908c11c96c48468f.tar.gz
Fixed libbe.settings_object.EMPTY output in bug/comment XML.
The xml() method hadn't been updated since the settings_object revamp.
Diffstat (limited to 'libbe')
-rw-r--r--libbe/bug.py2
-rw-r--r--libbe/comment.py2
2 files changed, 2 insertions, 2 deletions
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 = '<bug>\n'
for (k,v) in info:
- if v is not None:
+ if v is not settings_object.EMPTY:
ret += ' <%s>%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 = ["<comment>",
" <uuid>%s</uuid>" % self.uuid,
" <short-name>%s</short-name>" % (shortname,),]
- if self.in_reply_to != None:
+ if self.in_reply_to != settings_object.EMPTY:
lines.append(" <in-reply-to>%s</in-reply-to>" % self.in_reply_to)
lines.extend([
" <from>%s</from>" % self._setting_attr_string("From"),