コード例 #1
0
 def __init__(self, reason, source, builderName=None):
     # TODO: remove the =None on builderName, it is there so I don't have
     # to change a lot of tests that create BuildRequest objects
     assert interfaces.ISourceStamp(source, None)
     self.reason = reason
     self.source = source
     self.start_watchers = []
     self.finish_watchers = []
     self.status = BuildRequestStatus(source, builderName)
コード例 #2
0
    def __init__(self, reason, source, builderName, properties=None):
        assert interfaces.ISourceStamp(source, None)
        self.reason = reason
        self.source = source

        self.properties = Properties()
        if properties:
            self.properties.updateFromProperties(properties)

        self.start_watchers = []
        self.finish_watchers = []
        self.status = BuildRequestStatus(source, builderName)