diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-30 01:11:33 -0600 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-30 01:11:33 -0600 |
commit | ddb5449c7faabbd4c1b71adfe84c386b943a163f (patch) | |
tree | 07a38af3cfbdd29d6df6adfae4169d9130c1086d /ipalib/backend.py | |
parent | e37760a27358021962a6e6a8a7fbdc5195ce5bbe (diff) | |
download | freeipa-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.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ipalib/backend.py b/ipalib/backend.py index 82ed14f3f..b1e15f337 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__ + ) |