From ddb5449c7faabbd4c1b71adfe84c386b943a163f Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Thu, 30 Oct 2008 01:11:33 -0600 Subject: Did some initial work for Context plugins --- ipalib/backend.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ipalib/backend.py') 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__ + ) -- cgit