Пример #1
0
    def __init__(self,
                 tracker, id, desc, reporter, owner, priority, severity,
                 status, resolution, project_name, component_name, deadline,
                 opendate, changeddate,
                 dependson=_marker, blocked=_marker, whiteboard='', version=''):
        self.time = 0.0
        self.tracker = tracker
        self.id = str(id)
        self.desc = desc
        self.reporter = reporter
        self.owner = owner
        self.priority = priority
        self.severity = severity
        self.status = status
        self.resolution = resolution
        self.project_name = project_name
        self.component_name = component_name
        self.project = None
        self.deadline = deadline
        self.opendate = opendate
        self.changeddate = changeddate
        self.dependson = {} if dependson is _marker else dependson
        self.blocked = {} if blocked is _marker else blocked

        if isinstance(whiteboard, basestring):
            self.whiteboard = parse_whiteboard(whiteboard)
        else:
            self.whiteboard = whiteboard
        self.version = version
Пример #2
0
 def __init__(self,
              tracker, id, desc, reporter, owner, priority, severity,
              status, resolution, project_name, component_name, deadline,
              opendate, changeddate,
              dependson=_marker, blocked=_marker, whiteboard='', version=''):
     self.time = 0.0
     self.tracker = tracker
     self.id = str(id)
     self.desc = desc
     self.reporter = reporter
     self.owner = owner
     self.priority = priority
     self.severity = severity
     self.status = status
     self.resolution = resolution
     self.project_name = project_name
     self.component_name = component_name
     self.project = None
     self.deadline = deadline
     self.opendate = opendate
     self.changeddate = changeddate
     self.dependson = {} if dependson is _marker else dependson
     self.blocked = {} if blocked is _marker else blocked
     self.whiteboard = parse_whiteboard(whiteboard)
     self.version = version
Пример #3
0
    def __init__(self,
                 tracker, id, desc, reporter, owner, priority, severity,
                 status, resolution, project_name, component_name, deadline,
                 opendate, changeddate,
                 dependson=_marker, blocked=_marker, whiteboard='', version='',
                 number=None, labels=None):
        self.time = 0.0
        self.tracker = tracker
        self.number = number  # Unique number for github
        self.id = str(id)
        self.desc = desc
        self.reporter = reporter
        self.owner = owner
        self.priority = priority
        self.severity = severity
        self.status = status
        self.resolution = resolution
        self.project_name = project_name
        self.component_name = component_name
        self.project = None
        self.deadline = deadline
        self.opendate = opendate
        self.changeddate = changeddate
        self.dependson = {} if dependson is _marker else dependson
        self.blocked = {} if blocked is _marker else blocked
        self.labels = labels

        if isinstance(whiteboard, basestring):
            self.whiteboard = parse_whiteboard(whiteboard)
        else:
            self.whiteboard = whiteboard
        self.version = version