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):
49 storage =
'PickleStorage' 51 for key, value
in sorted(dataId.items()):
52 fileName +=
'_' + key + str(value)
54 path = os.path.join(self.
root, fileName)
55 if not write
and not os.path.exists(path):
57 return ButlerLocation(python, persistable, storage, path, dataId, self, self.
storage)
def __init__(self, root=None, parentRegistry=None, repositoryCfg=None, kwargs)
def map_foo(self, dataId, write)
def __init__(self, root, kwargs)