diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2009-10-13 22:23:19 -0600 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2009-10-14 15:07:17 -0600 |
commit | 5c9437b9e683a5f721595a5e312e4d61a11b60c7 (patch) | |
tree | 5ab4ec1fa7acd241c48c678a4f650fd3c9ff5f1f /ipalib/frontend.py | |
parent | f58ff2921defef330d53e08e427a82ced7585c88 (diff) | |
download | freeipa-5c9437b9e683a5f721595a5e312e4d61a11b60c7.tar.gz freeipa-5c9437b9e683a5f721595a5e312e4d61a11b60c7.tar.xz freeipa-5c9437b9e683a5f721595a5e312e4d61a11b60c7.zip |
Removed util.add_global_options() and frontend.Application
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r-- | ipalib/frontend.py | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py index 622c4276a..b13ffed42 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -1015,44 +1015,3 @@ class Property(Attribute): attr = getattr(self, name) if is_rule(attr): yield attr - - -class Application(Command): - """ - Base class for commands register by an external application. - - Special commands that only apply to a particular application built atop - `ipalib` should subclass from ``Application``. - - Because ``Application`` subclasses from `Command`, plugins that subclass - from ``Application`` with be available in both the ``api.Command`` and - ``api.Application`` namespaces. - """ - - __public__ = frozenset(( - 'application', - 'set_application' - )).union(Command.__public__) - __application = None - - def __get_application(self): - """ - Returns external ``application`` object. - """ - return self.__application - application = property(__get_application) - - def set_application(self, application): - """ - Sets the external application object to ``application``. - """ - if self.__application is not None: - raise AttributeError( - '%s.application can only be set once' % self.name - ) - if application is None: - raise TypeError( - '%s.application cannot be None' % self.name - ) - object.__setattr__(self, '_Application__application', application) - assert self.application is application |