X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=python%2Fcumulus%2Fstore%2F__init__.py;h=0899d70b04c9a03e1b0e1e32bc2166eca4ae4e88;hb=c343597dac79f9edc63d95d881625a317fadb1d9;hp=1e7d41fac98f51900cde901a328090f081194026;hpb=64bff41cb3ccdd60e767a5bb9ed8525d2dda1966;p=cumulus.git diff --git a/python/cumulus/store/__init__.py b/python/cumulus/store/__init__.py index 1e7d41f..0899d70 100644 --- a/python/cumulus/store/__init__.py +++ b/python/cumulus/store/__init__.py @@ -21,7 +21,7 @@ import exceptions, re, urlparse type_patterns = { 'checksums': re.compile(r"^snapshot-(.*)\.(\w+)sums$"), 'segments': re.compile(r"^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(\.\S+)?$"), - 'snapshots': re.compile(r"^snapshot-(.*)\.lbs$") + 'snapshots': re.compile(r"^snapshot-(.*)\.(cumulus|lbs)$") } class NotFoundError(exceptions.KeyError): @@ -55,19 +55,19 @@ class Store (object): except ImportError: raise NotImplementedError, "Scheme %s not implemented" % scheme - def list(self, type): + def list(self, path): raise NotImplementedError - def get(self, type, name): + def get(self, path): raise NotImplementedError - def put(self, type, name, fp): + def put(self, path, fp): raise NotImplementedError - def delete(self, type, name): + def delete(self, path): raise NotImplementedError - def stat(self, type, name): + def stat(self, path): raise NotImplementedError def scan(self):