def __init__(self, store_url, appid, **kwds): cache_activated = kwds.pop('cache_activated', False) if cache_activated: cache_options = {'servers': kwds.pop('cache_servers', '127.0.0.1'), 'prefix': kwds.pop('cache_prefix', 'appsyncsauropod')} self.cache_ttl = kwds.pop('cache_ttl', 300) self.cache = Cache(**cache_options) else: self.cache = self.cache_ttl = None self._store = pysauropod.connect(store_url, appid, **kwds) self.authentication = True
def __init__(self, store_url, appid, **kwds): cache_activated = kwds.pop("cache_activated", False) if cache_activated: cache_options = { "servers": kwds.pop("cache_servers", "127.0.0.1"), "prefix": kwds.pop("cache_prefix", "appsyncsauropod"), } self.cache_ttl = kwds.pop("cache_ttl", 300) self.cache = Cache(**cache_options) else: self.cache = self.cache_ttl = None self._store = pysauropod.connect(store_url, appid, **kwds) self.authentication = True
def __init__(self, store_url, appid, **kwds): cache_activated = kwds.pop('cache_activated', False) if cache_activated: cache_options = { 'servers': kwds.pop('cache_servers', '127.0.0.1'), 'prefix': kwds.pop('cache_prefix', 'appsyncsauropod') } self.cache_ttl = kwds.pop('cache_ttl', 300) self.cache = Cache(**cache_options) else: self.cache = self.cache_ttl = None self._store = pysauropod.connect(store_url, appid, **kwds) self.authentication = True
def _get_store(self, appid): return connect(self.server.base_url, appid)
def _get_store(self, appid): kwds = {"create_tables": True, "verifier": "vep:DummyVerifier"} return connect("sqlite:////tmp/sauropod.db", appid, **kwds)
def _get_store(self, appid): kwds = {"create_tables": True, "verify_browserid": "pysauropod.utils.dummy_verify_browserid"} return connect("sqlite:////tmp/sauropod.db", appid, **kwds)
def __init__(self, store_url, appid, **kwds): self._store = pysauropod.connect(store_url, appid, **kwds)