Aubin Paul wrote:
> On Wed, Dec 10, 2003 at 05:52:51PM +0100, Dirk Meyer wrote:
>> Agreed. But maybe we could store the mmpython data ourself and bypass
>> the mmpython cache?
>
> What would be ideal is if we could override the mmpython cache
> (inherit, whatever :) and then replace the write commands with our
> own which could store extended information.

That easy. Just set mmpython.object_cache to an object that has the
needed functions: 

check_cache(directory): 
how many files in this dir needs caching

cache_dir(directory, uncachable_keys, callback, ext_only): 
cache a directory

find(filename): 
return info for filename, raise cache.FileNotFoundException if not
found.

cache_disc(info):
write cache for isinstance(info, disc.discinfo.DiscInfo)


Dischi

-- 
What happens if a big asteroid hits the Earth? Judging from realistic
simulations involving a sledge hammer and a common laboratory frog, we
can assume it will be pretty bad.


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to