diff options
Diffstat (limited to 'common.py')
-rw-r--r-- | common.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2,6 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 import cStringIO +import datetime import re import portage @@ -50,6 +51,7 @@ class Bug: self.__depends_on = [int(dep.text) for dep in xml.findall("dependson")] self.__comments = [c.find("who").text + "\n" + c.find("thetext").text for c in xml.findall("long_desc")] self.__cc = [cc.text for cc in xml.findall("cc")] + self.__creation_timestamp = datetime.datetime.strptime(xml.find('creation_ts').text, '%Y-%m-%d %H:%M:%S +0000') self.__keywords = [] keywords_elem = xml.find("keywords") @@ -92,6 +94,9 @@ class Bug: def cc(self): return self.__cc + def creation_timestamp(self): + return self.__creation_timestamp + def keywords(self): return self.__keywords |