mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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>
This commit is contained in:
committed by
Jan Cholasta
parent
e45e29f337
commit
83b46238e7
@@ -126,6 +126,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
|
||||
|
||||
Reference in New Issue
Block a user