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

Have BaseBackend inherit from ArgBasedSingleton

Have the base pithos+ backend inherit from

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.
from synnefo.lib.singleton import ArgBasedSingleton
class NotAllowedError(Exception):
......@@ -60,7 +61,7 @@ class ItemNotExists(NameError):
class VersionNotExists(IndexError):
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
'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