Revert "Have BaseBackend inherit from ArgBasedSingleton"
authorVangelis Koukis <vkoukis@grnet.gr>
Sat, 25 Aug 2012 13:07:08 +0000 (16:07 +0300)
committerVangelis Koukis <vkoukis@grnet.gr>
Sat, 25 Aug 2012 13:07:08 +0000 (16:07 +0300)
This reverts commit d2869078476a590d2f875b45801fceee37234344.
The ModularBackend object has not been designed to be used
by multiple contexts concurrenctly, and shouldn't inherit
from ArgBasedSingleton.

Subsequent patches will enable pooling of ModularBackend objects,
using the ObjectPool facility of synnefo.lib.pool.

snf-pithos-backend/pithos/backends/base.py
snf-pithos-backend/setup.py

index 7ce6642..7270e7e 100644 (file)
@@ -35,7 +35,6 @@
 DEFAULT_QUOTA = 0 # No quota.
 DEFAULT_VERSIONING = 'auto'
 
-from synnefo.lib.singleton import ArgBasedSingleton
 
 class NotAllowedError(Exception):
     pass
@@ -61,7 +60,7 @@ class ItemNotExists(NameError):
 class VersionNotExists(IndexError):
     pass
 
-class BaseBackend(ArgBasedSingleton):
+class BaseBackend(object):
     """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
index 44c194d..968f137 100644 (file)
@@ -65,7 +65,7 @@ CLASSIFIERS = []
 
 # Package requirements
 INSTALL_REQUIRES = [
-    'snf-common>0.10.0',
+    'snf-common>0.9.13',
     'SQLAlchemy==0.6.3',
     'alembic>=0.3.4, <0.4',
 ]