report/generate.py: corrections

This commit is contained in:
2014-04-17 18:47:48 +02:00
parent 6d8137160c
commit 22860099ba
4 changed files with 53 additions and 34 deletions

View File

@ -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))))