X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=doc%2FDocBook.py;fp=doc%2FDocBook.py;h=832f052601afb03cc70c6c43c67c691113fcc23c;hb=328caa57be5cebbb77b2f264e20083e03ec5c28a;hp=90b384d7f189025b98f816f278b53dfe1b4e5cef;hpb=03026ae30ddd29f24afe67a0c56ea16ac0642132;p=plcapi.git diff --git a/doc/DocBook.py b/doc/DocBook.py index 90b384d..832f052 100755 --- a/doc/DocBook.py +++ b/doc/DocBook.py @@ -108,16 +108,19 @@ class DocBook: def Process (self): for func in self.functions_list: - method = func.name if func.status == "deprecated": continue + method = func.name + if func.status == 'legacy': + method += "-legacy" + (min_args, max_args, defaults) = func.args() section = Element('section') - section.setAttribute('id', func.name) - section.appendChild(simpleElement('title', func.name)) + section.setAttribute('id', method) + section.appendChild(simpleElement('title', method)) prototype = "%s (%s)" % (method, ", ".join(max_args)) para = paraElement('Prototype:')