Package buildbot :: Package status :: Module event
[frames] | no frames]

Source Code for Module buildbot.status.event

 1  # This file is part of Buildbot.  Buildbot is free software: you can 
 2  # redistribute it and/or modify it under the terms of the GNU General Public 
 3  # License as published by the Free Software Foundation, version 2. 
 4  # 
 5  # This program is distributed in the hope that it will be useful, but WITHOUT 
 6  # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
 7  # FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more 
 8  # details. 
 9  # 
10  # You should have received a copy of the GNU General Public License along with 
11  # this program; if not, write to the Free Software Foundation, Inc., 51 
12  # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 
13  # 
14  # Copyright Buildbot Team Members 
15   
16  from zope.interface import implements 
17  from buildbot import interfaces, util 
18   
19 -class Event:
20 implements(interfaces.IStatusEvent) 21 22 started = None 23 finished = None 24 text = [] 25 26 # IStatusEvent methods
27 - def getTimes(self):
28 return (self.started, self.finished)
29 - def getText(self):
30 return self.text
31 - def getLogs(self):
32 return []
33
34 - def finish(self):
35 self.finished = util.now()
36