git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'newinterface' of ssh://bakers@git.planet-lab.org/git/plcapi into newint...
[plcapi.git]
/
doc
/
DocBook.py
diff --git
a/doc/DocBook.py
b/doc/DocBook.py
index
90b384d
..
832f052
100755
(executable)
--- a/
doc/DocBook.py
+++ b/
doc/DocBook.py
@@
-108,16
+108,19
@@
class DocBook:
def Process (self):
for func in self.functions_list:
def Process (self):
for func in self.functions_list:
- method = func.name
if func.status == "deprecated":
continue
if func.status == "deprecated":
continue
+ method = func.name
+ if func.status == 'legacy':
+ method += "-legacy"
+
(min_args, max_args, defaults) = func.args()
section = Element('section')
(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:')
prototype = "%s (%s)" % (method, ", ".join(max_args))
para = paraElement('Prototype:')