Revision d2869078 snf-pithos-backend/pithos/backends/base.py
b/snf-pithos-backend/pithos/backends/base.py | ||
---|---|---|
35 | 35 |
DEFAULT_QUOTA = 0 # No quota. |
36 | 36 |
DEFAULT_VERSIONING = 'auto' |
37 | 37 |
|
38 |
from synnefo.lib.singleton import ArgBasedSingleton |
|
38 | 39 |
|
39 | 40 |
class NotAllowedError(Exception): |
40 | 41 |
pass |
... | ... | |
60 | 61 |
class VersionNotExists(IndexError): |
61 | 62 |
pass |
62 | 63 |
|
63 |
class BaseBackend(object):
|
|
64 |
class BaseBackend(ArgBasedSingleton):
|
|
64 | 65 |
"""Abstract backend class that serves as a reference for actual implementations. |
65 | 66 |
|
66 | 67 |
The purpose of the backend is to provide the necessary functions for handling data |
Also available in: Unified diff