fixed created tag handling in import-xml
authorValtteri Kokkoniemi <rvk@iki.fi>
Sat, 16 Apr 2011 17:16:10 +0000 (13:16 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 16 Apr 2011 17:16:10 +0000 (13:16 -0400)
libbe/bug.py

index 6d3d836d8a7ce5b67cc987f5ec69bd575a81cd19..122c81a16f717d8e8bff9da2d73b848b5131b904 100644 (file)
@@ -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.