* morituri/common/cache.py:

* morituri/rip/debug.py:
	* morituri/test/test_common_cache.py:
	  Add rip debug resultcache list to list cached results.
This commit is contained in:
Thomas Vander Stichele
2012-12-02 17:27:15 +00:00
parent b86febb3b1
commit 306e6f2ad7
4 changed files with 50 additions and 3 deletions

View File

@@ -22,6 +22,7 @@
import os
import os.path
import glob
import tempfile
import shutil
@@ -175,3 +176,9 @@ class ResultCache(log.Loggable):
cddbdiscid)
return presult
def getIds(self):
paths = glob.glob(os.path.join(self._path, '*.pickle'))
return [os.path.splitext(os.path.basename(path))[0] for path in paths]