def addEvent(self, text=[]): # this adds a duration event. When it is done, the user should call # e.finish(). They can also mangle it by modifying .text e = Event() e.started = util.now() e.text = text self.events.append(e) self.prune(events_only=True) return e # they are free to mangle it further
def addEvent(self, text=None): # this adds a duration event. When it is done, the user should call # e.finish(). They can also mangle it by modifying .text e = Event() e.started = util.now() if text is None: text = [] e.text = text return e # they are free to mangle it further
def addPointEvent(self, text=[]): # this adds a point event, one which occurs as a single atomic # instant of time. e = Event() e.started = util.now() e.finished = 0 e.text = text self.events.append(e) self.prune(events_only=True) return e # for consistency, but they really shouldn't touch it
def addPointEvent(self, text=None): # this adds a point event, one which occurs as a single atomic # instant of time. e = Event() e.started = util.now() e.finished = 0 if text is None: text = [] e.text = text return e # for consistency, but they really shouldn't touch it
def startStatus(self): evt = Event("yellow", ['running', 'maxq', 'tests'], files={'log': self.log}) self.setCurrentActivity(evt)