document rna functions that have the no_self flag set as classmethods

This commit is contained in:
2010-08-17 14:32:14 +00:00
parent 08d55cbe98
commit b278279c95
4 changed files with 14 additions and 2 deletions

View File

@@ -594,7 +594,7 @@ def rna2sphinx(BASEPATH):
for func in struct.functions:
args_str = ", ".join([prop.get_arg_default(force=False) for prop in func.args])
fw(" .. method:: %s(%s)\n\n" % (func.identifier, args_str))
fw(" .. %s:: %s(%s)\n\n" % ("classmethod" if func.is_classmethod else "method", func.identifier, args_str))
fw(" %s\n\n" % func.description)
for prop in func.args: