report/generate.py: corrections
This commit is contained in:
@ -61,9 +61,9 @@ def opt_rst_content(path, prefix, descr, value):
|
||||
content.add(ListItem().join(Strong("path:"), Text(path)))
|
||||
content.add(ListItem().join(Strong("parent config:"), Text(prefix)))
|
||||
if isinstance(descr, ChoiceOption):
|
||||
content.add(ListItem().join(Strong("possible values:"), Text(str(descr._values))))
|
||||
content.add(ListItem().join(Strong("possible values:"), Text(str(descr.impl_get_values()))))
|
||||
if not isinstance(descr, SymLinkOption):
|
||||
content.add(ListItem().join(Strong("mime type:"), Text(str(descr._opt_type))))
|
||||
content.add(ListItem().join(Strong("mime type:"), Text(str(descr.__class__.__name__))))
|
||||
content.add(ListItem().join(Strong("default value:"), Text(str(descr.impl_getdefault()))))
|
||||
content.add(ListItem().join(Strong("description:"), Text(str(descr.impl_get_information('doc')))))
|
||||
content.add(ListItem().join(Strong("requirements:"), Text(str(descr._requires))))
|
||||
|
Reference in New Issue
Block a user