diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-04 04:39:01 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-09-04 04:39:01 +0000 |
commit | ab81ca56fd336af4b83ef19a6f97dffe0b1a0923 (patch) | |
tree | 05bebd08f4ae1672b2259f797613346745bb8272 /ipalib/public.py | |
parent | e1f8619d4adbc15415e2959496640c0f707c54fe (diff) | |
download | freeipa.git-ab81ca56fd336af4b83ef19a6f97dffe0b1a0923.tar.gz freeipa.git-ab81ca56fd336af4b83ef19a6f97dffe0b1a0923.tar.xz freeipa.git-ab81ca56fd336af4b83ef19a6f97dffe0b1a0923.zip |
255: CLI help, console commands now subclass from public.Application; other tweeking to make CLI utilize Application
Diffstat (limited to 'ipalib/public.py')
-rw-r--r-- | ipalib/public.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ipalib/public.py b/ipalib/public.py index c6611ab7..eb94ac52 100644 --- a/ipalib/public.py +++ b/ipalib/public.py @@ -396,6 +396,7 @@ class Application(Command): __public__ = frozenset(( 'application', + 'set_application' )).union(Command.__public__) __application = None @@ -404,7 +405,9 @@ class Application(Command): Returns external ``application`` object. """ return self.__application - def __set_application(self, application): + application = property(__get_application) + + def set_application(self, application): """ Sets the external application object to ``application``. """ @@ -418,4 +421,3 @@ class Application(Command): ) object.__setattr__(self, '_Application__application', application) assert self.application is application - application = property(__get_application, __set_application) |