g-ir-doc-tool: Qualify the class name in the constructor with the module name
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Mon, 20 Feb 2012 12:21:40 +0000 (13:21 +0100)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Mon, 20 Feb 2012 12:21:40 +0000 (13:21 +0100)
giscanner/mallard-Python-class.tmpl
tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.page

index feae1d1..5437fcd 100644 (file)
@@ -23,7 +23,7 @@ ${formatter.format(node.doc)}
   </synopsis>
   <p>Constructor</p>
   <synopsis><code>
-${formatter.to_underscores(node.name).lower()} = ${node.name}(\
+${formatter.to_underscores(node.name).lower()} = ${namespace.name}.${node.name}(\
 % for property_, ix in zip(node.properties, range(len(node.properties))):
 % if property_.construct or property_.construct_only or property_.writable:
 <link xref='${namespace.name}.${node.name}-${property_.name}'>${property_.name.replace('-', '_')}</link>=value\
index dda7295..a5dd47b 100644 (file)
@@ -20,7 +20,7 @@
   </synopsis>
   <p>Constructor</p>
   <synopsis><code>
-repository = Repository()  </code></synopsis>
+repository = GIRepository.Repository()  </code></synopsis>
   <links type="topic" ui:expanded="yes"
          api:type="function" api:mime="text/x-python"
          groups="method" style="linklist">