Home | History | Annotate | Download | only in webkitpy

Lines Matching full:self

184     def __init__(self, directory=None):
191 self.directory = directory
193 if not os.path.exists(self.directory):
194 self._create_cache_directory()
197 self.cache_directry = tempfile.mkdtemp()
198 _logger.info("Using cache directory '%s'." % self.directory)
200 def _create_cache_directory(self):
201 _logger.debug("Creating cache directory '%s'." % self.directory)
202 os.mkdir(self.directory)
203 readme_path = os.path.join(self.directory, "README")
208 def get(self, url):
213 d = os.path.join(self.directory, "%s" % hash(url))
224 self.download(url, stream)
228 def download(self, url, stream):
254 def __init__(self):
255 self.packages = {}
256 self.__cache = None
258 def __get_store(self):
259 return self.__store
262 def _get_cache(self):
263 if self.__cache is None:
264 self.__cache = Cache()
265 return self.__cache
266 def _set_cache(self, cache):
267 self.__cache = cache
270 def find_module(self, fullname, path=None):
271 """-> self or None.
281 if fullname in self.packages:
282 (url, zip_subpath) = self.packages[fullname]
283 filename = self.cache.get(url)
295 def bind(self, package_name, url, zip_subpath):
297 self.packages[package_name] = (url, zip_subpath)