Subversion

helios_wp3

[/] [trunk/] [python/] [bugloc.py.old] - Rev 214 Go to most recent revision

Compare with Previous - Blame


# Copyright Olivier Berger <olivier.berger@it-sudparis.eu> + Institut TELECOM, 2008
# developped in the frame of the HELIOS project (http://www.helios-platform.org/)
# License : GNU LGPL V3


# import these bits from btsutils (Debian package 'python-btsutils')
from btsutils.bug import Bug
from btsutils import BugSeverity, BugStatus

# Override Bug to add Date attribute (epoch)

class Bugloc(Bug):

    def __init__(self, bug=None, package=None, summary=None, 
        severity=BugSeverity.DEFAULT, submitter=None, tags=None,
        usertags=None, status=BugStatus.DEFAULT, forwarded=None,
        url='', date=None):

        self.date = date

        Bug.__init__(self, bug=bug, package=package, summary=summary, severity=severity, submitter=submitter, tags=tags, usertags=usertags, status=status, forwarded=forwarded, url=url)


    def getDate(self):
        return self.date

    # must be a string or int as an epoch value
    def setDate(self, date):
        self.date = int(date)

Powered by WebSVN v1.61