diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-06-27 10:32:04 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-06-27 10:41:53 -0400 |
commit | 7e43d4af98a12e5685f250bf2161fc7afebe02a1 (patch) | |
tree | c01973d3dcf075b394c7dec66a1a45894d8c9f4d /src/lib/Bcfg2/Reporting/Storage/base.py | |
parent | 4261f7238e3b7eb169fcb0f672e7fdb86d722189 (diff) | |
download | bcfg2-7e43d4af98a12e5685f250bf2161fc7afebe02a1.tar.gz bcfg2-7e43d4af98a12e5685f250bf2161fc7afebe02a1.tar.bz2 bcfg2-7e43d4af98a12e5685f250bf2161fc7afebe02a1.zip |
Options: migrated reporting to new parser
Diffstat (limited to 'src/lib/Bcfg2/Reporting/Storage/base.py')
-rw-r--r-- | src/lib/Bcfg2/Reporting/Storage/base.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/lib/Bcfg2/Reporting/Storage/base.py b/src/lib/Bcfg2/Reporting/Storage/base.py index 92cc3a68b..771f755a1 100644 --- a/src/lib/Bcfg2/Reporting/Storage/base.py +++ b/src/lib/Bcfg2/Reporting/Storage/base.py @@ -2,28 +2,25 @@ The base for all Storage backends """ -import logging +import logging + class StorageError(Exception): """Generic StorageError""" pass -class StorageImportError(StorageError): - """Raised when a storage module fails to import""" - pass - class StorageBase(object): """The base for all storages""" + options = [] + __rmi__ = ['Ping', 'GetExtra', 'GetCurrentEntry'] - def __init__(self, setup): + def __init__(self): """Do something here""" clsname = self.__class__.__name__ self.logger = logging.getLogger(clsname) self.logger.debug("Loading %s storage" % clsname) - self.setup = setup - self.encoding = setup['encoding'] def import_interaction(self, interaction): """Import the data into the backend""" @@ -48,4 +45,3 @@ class StorageBase(object): def GetCurrentEntry(self, client, e_type, e_name): """Get the current status of an entry on the client""" raise NotImplementedError - |