def __init__(self, prefix='tori/session', redis_client=None, use_localhost_as_fallback=True): Base.__init__(self) self._redis = redis_client self._prefix = prefix self._use_localhost_as_fallback = use_localhost_as_fallback
def __init__(self, prefix='tori/session', redis_client=None, use_localhost_as_fallback=True): if not __MODULE_ENABLED: raise ImportError('Failed to enable Redis session storage.') Base.__init__(self) self._redis = redis_client self._prefix = prefix self._use_localhost_as_fallback = use_localhost_as_fallback
def __init__(self, collection): Base.__init__(self) self.collection = collection
def __init__(self, db): Base.__init__(self) self.db = db