示例#1
0
 def __init__(self, *args, **kwargs):
     BaseNamespace.__init__(self, *args, **kwargs)
     BroadcastMixin.__init__(self)
     try:
         self.storage = self.request.root.storage
     except:
         self.request.root.storage = {}
         self.storage = self.request.root.storage
     for var in ['user', 'channel']:
         if not var in self.storage:
             self.storage[var] = {}
示例#2
0
 def __init__(self, context, env, *args, **kwargs):
     BaseNamespace.__init__(self, env, *args, **kwargs)
     BroadcastMixin.__init__(self)
     self.context = context
     self.env = env
     self.gate = None
示例#3
0
文件: middleware.py 项目: NJMG/ajenti
 def __init__(self, context, env, *args, **kwargs):
     BaseNamespace.__init__(self, env, *args, **kwargs)
     BroadcastMixin.__init__(self)
     self.context = context
     self.env = env
     self.gate = None
示例#4
0
 def __init__(self, *args, **kwargs):
     BaseNamespace.__init__(self, *args, **kwargs)
     BroadcastMixin.__init__(self)
     self.disconnected = False
示例#5
0
文件: server.py 项目: Werniman/client
 def __init__(self, *args, **kwargs):
     BaseNamespace.__init__(self, *args, **kwargs)
     BroadcastMixin.__init__(self)
     self.disconnected = False