示例#1
0
 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()
示例#2
0
 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)
示例#3
0
 def __init__(self, mind, avatar):
     NevowMind.__init__(self, mind, avatar, TeamPage)
示例#4
0
 def contestStarted(self, name, details):
     self.update_details(True, name, details)
     NevowMind.contestStarted(self, name, details)
示例#5
0
 def contestStopped(self):
     self.update_details(False, self.name)
     NevowMind.contestStopped(self)
示例#6
0
 def __init__(self, mind, avatar):
     NevowMind.__init__(self, mind, avatar, AdminPage)