Have the base pithos+ backend inherit from
synnefo.lib.singleton.ArgBasedSingleton.
This makes repeated attempts to re-instantiate any pithos+ backend with
the same arguments reuse the pre-existing backend object.
DEFAULT_QUOTA = 0 # No quota.
DEFAULT_VERSIONING = 'auto'
+from synnefo.lib.singleton import ArgBasedSingleton
class NotAllowedError(Exception):
pass
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
# Package requirements
INSTALL_REQUIRES = [
- 'snf-common>0.9.13',
+ 'snf-common>0.10.0',
'SQLAlchemy==0.6.3',
'alembic>=0.3.4, <0.4',
]