예제 #1
0
 def __init__(self, ctx):
     self._log = _log
     self._ctx = ctx
     self._unzipUtil = UnzipUtil(ctx)
     self._hashUtil = HashUtil(ctx)
     self._dcm = DirectoryCacheManager(ctx)
     self._dwn = self._get_downloader(ctx)(ctx)
예제 #2
0
파일: cache.py 프로젝트: manhkhoaa/cfphp
 def __init__(self, ctx):
     self._log = logging.getLogger('cache')
     if ctx.get('USE_EXTERNAL_HASH', False):
         self._log.debug("Using external hash.")
         self._hashUtil = ShaHashUtil(ctx)
     else:
         self._log.debug("Using hashlib.")
         self._hashUtil = HashUtil(ctx)
 def __init__(self, ctx):
     if ctx.get('USE_EXTERNAL_HASH', False):
         self._hashUtil = ShaHashUtil(ctx)
     else:
         self._hashUtil = HashUtil(ctx)