etwist/server.py
changeset 7309 22403d5c3da4
parent 7283 1699393372b3
child 7344 5290b5c586ec
equal deleted inserted replaced
7304:66fa1b7ac784 7309:22403d5c3da4
   169 
   169 
   170 class ConcatFiles(LongTimeExpiringFile):
   170 class ConcatFiles(LongTimeExpiringFile):
   171     def __init__(self, config, paths):
   171     def __init__(self, config, paths):
   172         _, ext = osp.splitext(paths[0])
   172         _, ext = osp.splitext(paths[0])
   173         # create a unique / predictable filename
   173         # create a unique / predictable filename
   174         fname = hashlib.md5(';'.join(paths)).hexdigest() + ext
   174         fname = 'cache_concat_' + hashlib.md5(';'.join(paths)).hexdigest() + ext
   175         filepath = osp.join(config.appdatahome, 'uicache', fname)
   175         filepath = osp.join(config.appdatahome, 'uicache', fname)
   176         LongTimeExpiringFile.__init__(self, config, filepath)
   176         LongTimeExpiringFile.__init__(self, config, filepath)
   177         self._concat_cached_filepath(filepath, paths)
   177         self._concat_cached_filepath(filepath, paths)
   178 
   178 
   179     def _concat_cached_filepath(self, filepath, paths):
   179     def _concat_cached_filepath(self, filepath, paths):