summaryrefslogtreecommitdiffstats
path: root/ipalib/backend.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-10-30 01:11:33 -0600
committerJason Gerard DeRose <jderose@redhat.com>2008-10-30 01:11:33 -0600
commitddb5449c7faabbd4c1b71adfe84c386b943a163f (patch)
tree07a38af3cfbdd29d6df6adfae4169d9130c1086d /ipalib/backend.py
parente37760a27358021962a6e6a8a7fbdc5195ce5bbe (diff)
downloadfreeipa-ddb5449c7faabbd4c1b71adfe84c386b943a163f.tar.gz
freeipa-ddb5449c7faabbd4c1b71adfe84c386b943a163f.tar.xz
freeipa-ddb5449c7faabbd4c1b71adfe84c386b943a163f.zip
Did some initial work for Context plugins
Diffstat (limited to 'ipalib/backend.py')
-rw-r--r--ipalib/backend.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/ipalib/backend.py b/ipalib/backend.py
index 82ed14f3..b1e15f33 100644
--- a/ipalib/backend.py
+++ b/ipalib/backend.py
@@ -23,9 +23,23 @@ Base classes for all backed-end plugins.
import plugable
+
class Backend(plugable.Plugin):
"""
Base class for all backend plugins.
"""
__proxy__ = False # Backend plugins are not wrapped in a PluginProxy
+
+
+class Context(plugable.Plugin):
+ """
+ Base class for plugable context components.
+ """
+
+ __proxy__ = False # Backend plugins are not wrapped in a PluginProxy
+
+ def get_value(self):
+ raise NotImplementedError(
+ '%s.get_value()' % self.__class__.__name__
+ )