diff options
author | David Kupka <dkupka@redhat.com> | 2016-08-09 17:03:25 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-08-17 14:16:04 +0200 |
commit | 83b46238e78af8d6d942119c4f6f55b8f508e1f4 (patch) | |
tree | 5e646138dafafb2f43964f2fad191f2db7d7c518 /ipaclient/frontend.py | |
parent | e45e29f337fae83dc490721c769a86a5641d58f2 (diff) | |
download | freeipa-83b46238e78af8d6d942119c4f6f55b8f508e1f4.tar.gz freeipa-83b46238e78af8d6d942119c4f6f55b8f508e1f4.tar.xz freeipa-83b46238e78af8d6d942119c4f6f55b8f508e1f4.zip |
frontent: Add summary class property to CommandOverride
Avoid creating instance of overriden command to get its summary.
https://fedorahosted.org/freeipa/ticket/6048
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipaclient/frontend.py')
-rw-r--r-- | ipaclient/frontend.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ipaclient/frontend.py b/ipaclient/frontend.py index aeaed5507..587e31c89 100644 --- a/ipaclient/frontend.py +++ b/ipaclient/frontend.py @@ -127,6 +127,12 @@ class CommandOverride(Command): doc = classproperty(__doc_getter) @classmethod + def __summary_getter(cls): + return cls.__get_next().summary + + summary = classproperty(__summary_getter) + + @classmethod def __NO_CLI_getter(cls): return cls.__get_next().NO_CLI |