[gobject-introspection] output namespace.class.methodname for python methods in the doctools



commit 00c9a6ee00ced2718836bfc5bf4e9d0a5e223dc0
Author: John (J5) Palmieri <johnp redhat com>
Date:   Mon Aug 15 09:27:05 2011 -0400

    output namespace.class.methodname for python methods in the doctools

 giscanner/mallardwriter.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py
index 3f5c29f..d24786d 100644
--- a/giscanner/mallardwriter.py
+++ b/giscanner/mallardwriter.py
@@ -265,7 +265,7 @@ class MallardFormatterPython(MallardFormatter):
         if isinstance(node, ast.Namespace):
             return "%s Documentation" % node.name
         elif isinstance(node, ast.Function):
-            return "%s.%s" % (node.namespace.name, node.name)
+            return "%s.%s.%s" % (node.namespace.name, parent.name, node.name)
         elif isinstance(node, ast.Property):
             return "%s" % node.name
         elif isinstance(node, ast.Signal):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]