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] = {}
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
def __init__(self, *args, **kwargs): BaseNamespace.__init__(self, *args, **kwargs) BroadcastMixin.__init__(self) self.disconnected = False