Commit 65f9b8fd authored by Vangelis Koukis's avatar Vangelis Koukis

Have BaseBackend inherit from ArgBasedSingleton

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.
parent e07eda9d
......@@ -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
......
......@@ -65,7 +65,7 @@ CLASSIFIERS = []
# Package requirements
INSTALL_REQUIRES = [
'snf-common>0.9.13',
'snf-common>0.10.0',
'SQLAlchemy==0.6.3',
'alembic>=0.3.4, <0.4',
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment