def __init__ (self, identifier, title, description="", template=None): BaseController.__init__ (self, identifier=identifier, description=description, title=title or identifier, template=template or "relais.amergin/tool.html", url=identifier, )
def __init__(self): BaseController.__init__(self, SERVICE_NAME) self.c.register(GET_MSG_ID, self.get_msg_cb) self.c.register(SEND_MSG_ID, self.send_msg_cb) self.c.register(JOIN_CHAT_ROOM_ID, self.join_chat_room_cb) self.chat_token_pool = {} # to avoid unnecessary update # self.user_controller = UserController() self.counter = 0
def __init__(self): BaseController.__init__(self, SERVICE_NAME) self.current_username = None self.current_user_id = None self.current_user_point = -1 self.c.register(LOGIN_ID, self.login_callback) self.game_controller = GameController()
def __init__ (self, model, identifier=None, description="", title=None, template=None, url=None, subcontrollers={}): self.model = model self.name = self.model._meta.verbose_name self.name_plural = self.model._meta.verbose_name_plural BaseController.__init__ (self, identifier = identifier or NAME_TO_ID_RE.sub ('', self.name_plural), description=description, title= title or self.name_plural, template=template or "relais.amergin/model.html", url=url, subcontrollers=subcontrollers, )
def __init__(self, parent=None): BaseController.__init__(self) super(SubMenuController, self).__init__(parent)
def __init__(self, parent=None): BaseController.__init__(self) super(AppController, self).__init__(parent)
def __init__(self): BaseController.__init__(self, service_name=SERVICE_NAME) self.game_list = None
def __init__(self): BaseController.__init__(self, service_name=SERVICE_NAME)