26 from ..
import ButlerLocation
28 from ..
import Storage
29 from .
import TestObject
33 """Class that can be used as a stub for a mapper."""
35 def __init__(self, root=None, parentRegistry=None, repositoryCfg=None, **kwargs):
50 storage =
'PickleStorage'
52 for key, value
in sorted(dataId.items()):
53 fileName +=
'_' + key + str(value)
55 path = os.path.join(self.
root, fileName)
56 if not write
and not os.path.exists(path):
58 return ButlerLocation(python, persistable, storage, path, dataId, self, self.
storage)