Have BaseBackend inherit from ArgBasedSingleton
[pithos] / snf-pithos-backend / pithos / backends / base.py
index 7270e7e..7ce6642 100644 (file)
@@ -35,6 +35,7 @@
 DEFAULT_QUOTA = 0 # No quota.
 DEFAULT_VERSIONING = 'auto'
 
+from synnefo.lib.singleton import ArgBasedSingleton
 
 class NotAllowedError(Exception):
     pass
@@ -60,7 +61,7 @@ class ItemNotExists(NameError):
 class VersionNotExists(IndexError):
     pass
 
-class BaseBackend(object):
+class BaseBackend(ArgBasedSingleton):
     """Abstract backend class that serves as a reference for actual implementations.
     
     The purpose of the backend is to provide the necessary functions for handling data