fix up Python doc backend to output correct names
authorJohn (J5) Palmieri <johnp@redhat.com>
Mon, 15 Aug 2011 12:19:29 +0000 (08:19 -0400)
committerJohn (J5) Palmieri <johnp@redhat.com>
Mon, 15 Aug 2011 12:35:37 +0000 (08:35 -0400)
giscanner/mallardwriter.py

index bf87aea72c612f41e7ee08c3b02e44d29c287f6f..3f5c29fcf4f022d2960998377ee792efa4ff4c04 100644 (file)
@@ -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):