Exemplo n.º 1
0
 def getFilename(self, args):
     """Return a filename for a cached object corresponding to the provided args
        and this data type. This combines a hash of args with the name of this class.
        We create the cache directory if necessary.
        """
     hash = md5.md5(repr(args)).hexdigest()
     return Files.getCacheFile(self.__class__.__name__, hash)
Exemplo n.º 2
0
 def getFilename(self, args):
     """Return a filename for a cached object corresponding to the provided args
        and this data type. This combines a hash of args with the name of this class.
        We create the cache directory if necessary.
        """
     hash = md5.md5(repr(args)).hexdigest()
     return Files.getCacheFile(self.__class__.__name__, hash)