mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-11-02 20:30:26 -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:
1 parent
e45e29f337
commit
83b46238e7
1 file changed
+6
@@ -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