def init(self): # Get submissions self.submissions = [] result = self.avatar.perspective_getInformation() self.update_details(result['isrunning'], result['name'], result['details']) NevowMind.init(self) return self.update_submissions()
def init(self): result = self.avatar.perspective_getInformation() self.isrunning = result['duration'] is not None self.name = result['name'] if self.isrunning: self.duration = result['duration'] self.age = result['age'] else: self.duration = self.age = 'Contest is not running' NevowMind.init(self)
def __init__(self, mind, avatar): NevowMind.__init__(self, mind, avatar, TeamPage)
def contestStarted(self, name, details): self.update_details(True, name, details) NevowMind.contestStarted(self, name, details)
def contestStopped(self): self.update_details(False, self.name) NevowMind.contestStopped(self)
def __init__(self, mind, avatar): NevowMind.__init__(self, mind, avatar, AdminPage)