Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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)
Exemplo n.º 6
0
 def _get_store(self, appid):
     return connect(self.server.base_url, appid)
Exemplo n.º 7
0
 def _get_store(self, appid):
     kwds = {"create_tables": True,
             "verifier": "vep:DummyVerifier"}
     return connect("sqlite:////tmp/sauropod.db", appid, **kwds)
Exemplo n.º 8
0
 def _get_store(self, appid):
     kwds = {"create_tables": True,
             "verify_browserid": "pysauropod.utils.dummy_verify_browserid"}
     return connect("sqlite:////tmp/sauropod.db", appid, **kwds)
Exemplo n.º 9
0
 def __init__(self, store_url, appid, **kwds):
     self._store = pysauropod.connect(store_url, appid, **kwds)