[gobject-introspection] fix up Python doc backend to output correct names



commit 9a0756ce7ad412fb04c6af9f9cb0bed2e9ccba10
Author: John (J5) Palmieri <johnp redhat com>
Date:   Mon Aug 15 08:19:29 2011 -0400

    fix up Python doc backend to output correct names

 giscanner/mallardwriter.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py
index bf87aea..3f5c29f 100644
--- a/giscanner/mallardwriter.py
+++ b/giscanner/mallardwriter.py
@@ -265,13 +265,13 @@ class MallardFormatterPython(MallardFormatter):
         if isinstance(node, ast.Namespace):
             return "%s Documentation" % node.name
         elif isinstance(node, ast.Function):
-            return "%s.%s" % (node.namespace, node.name)
+            return "%s.%s" % (node.namespace.name, node.name)
         elif isinstance(node, ast.Property):
-            return "%s" % parent.name
+            return "%s" % node.name
         elif isinstance(node, ast.Signal):
             return "%s" % node.name
         else:
-            return "%s.%s" % (node.namespace, node.name)
+            return "%s.%s" % (node.namespace.name, node.name)
 
 class MallardPage(object):
     def __init__(self, writer, node, parent):



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