From: Valtteri Kokkoniemi <[email protected]>
Subject: [PATCH] fixed created tag handling in import-xml

---
[This was submitted to my (cjb's) be repo directly, via --repo.]

 libbe/bug.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libbe/bug.py b/libbe/bug.py
index 6d3d836..122c81a 100644
--- a/libbe/bug.py
+++ b/libbe/bug.py
@@ -395,6 +395,10 @@ class Bug (settings_object.SavedSettingsObject):
                 if child.tag == 'uuid':
                     uuid = text
                     continue # don't set the bug's uuid tag.
+               elif child.tag == 'created':
+                    self.time = utility.str_to_time(text)
+                    self.explicit_attrs.append('time')
+                    continue
                 elif child.tag == 'extra-string':
                     estrs.append(text)
                     continue # don't set the bug's extra_string yet.
-- 
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child

_______________________________________________
Be-devel mailing list
[email protected]
http://void.printf.net/cgi-bin/mailman/listinfo/be-devel

Reply via email to