示例#1
0
	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,
		)
示例#2
0
 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
示例#3
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()
示例#4
0
	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,
		)
示例#5
0
 def __init__(self, parent=None):
     BaseController.__init__(self)
     super(SubMenuController, self).__init__(parent)
示例#6
0
 def __init__(self, parent=None):
     BaseController.__init__(self)
     super(AppController, self).__init__(parent)
示例#7
0
 def __init__(self):
     BaseController.__init__(self, service_name=SERVICE_NAME)
     self.game_list = None
示例#8
0
 def __init__(self):
     BaseController.__init__(self, service_name=SERVICE_NAME)