Пример #1
0
 def __init__(self, access_key_id, secret_access_key, locale, cachedir=DEFAULT_CACHE_DIR, **kwargs):
     """
     :param cachedir: Path to directory containing cached responses.
     """
     API.__init__(self, access_key_id, secret_access_key, locale, **kwargs)
     self.cache = cachedir
     if self.cache and not os.path.isdir(self.cache):
         os.mkdir(self.cache)
Пример #2
0
 def __init__(self, *args, **kwargs):
     """
     :param cachedir: Path to directory containing cached responses.
     """
     self.cache = kwargs.pop("cachedir", DEFAULT_CACHE_DIR)
     API.__init__(self, *args, **kwargs)
     if self.cache and not os.path.isdir(self.cache):
         os.mkdir(self.cache)
Пример #3
0
 def __init__(self, *args, **kwargs):
     """
     :param cachedir: Path to directory containing cached responses.
     """
     self.cache = kwargs.pop('cachedir', DEFAULT_CACHE_DIR)
     self.cachetime = kwargs.pop('cachetime', False) # i.e. indefinite
     API.__init__(self, *args, **kwargs)
     if self.cache and not os.path.isdir(self.cache):
         os.mkdir(self.cache)
Пример #4
0
 def __init__(self, *args, **kwargs):
     """
     :param cachedir: Path to directory containing cached responses.
     """
     self.cache = kwargs.pop('cachedir', DEFAULT_CACHE_DIR)
     self.cachetime = kwargs.pop('cachetime', False)  # i.e. indefinite
     API.__init__(self, *args, **kwargs)
     if self.cache and not os.path.isdir(self.cache):
         os.mkdir(self.cache)
Пример #5
0
 def __init__(self, access_key_id, secret_access_key, locale,
              cachedir=DEFAULT_CACHE_DIR, **kwargs):
     """
     :param cachedir: Path to directory containing cached responses.
     """
     API.__init__(self, access_key_id, secret_access_key, locale, **kwargs)
     self.cache = cachedir
     if self.cache and not os.path.isdir(self.cache):
         os.mkdir(self.cache)
 def __init__(self, *args, **kwargs):
     API.__init__(self, *args, **kwargs)
     self.batch_mode = False
 def __init__(self, *args, **kwargs):
     API.__init__(self, *args, **kwargs)
     self.batch_mode = False
 def __init__(self, *args, **kwargs):
     API.__init__(self, *args, **kwargs)
     self.processor = self.json_processor