示例#1
0
 def __setstate__(self, d):
     # when loading, re-initialize the transient stuff. Remember that
     # upgradeToVersion1 and such will be called after this finishes.
     styles.Versioned.__setstate__(self, d)
     self.buildCache = LRUCache(self.cacheMiss)
     self.currentBuilds = []
     self.watchers = []
     self.workernames = []
示例#2
0
    def __init__(self, buildername, tags, master, description):
        self.name = buildername
        self.tags = tags
        self.description = description
        self.master = master

        self.workernames = []
        self.events = []
        # these three hold Events, and are used to retrieve the current
        # state of the boxes.
        self.lastBuildStatus = None
        self.currentBuilds = []
        self.nextBuild = None
        self.watchers = []
        self.buildCache = LRUCache(self.cacheMiss)
示例#3
0
    def __init__(self, buildername, category, master):
        self.name = buildername
        self.category = category
        self.master = master

        self.slavenames = []
        self.events = []
        # these three hold Events, and are used to retrieve the current
        # state of the boxes.
        self.lastBuildStatus = None
        #self.currentBig = None
        #self.currentSmall = None
        self.currentBuilds = []
        self.nextBuild = None
        self.watchers = []
        self.buildCache = LRUCache(self.cacheMiss)