[gobject-introspection/mallard-templates] g-ir-doc-tool: Qualify the class name in the constructor with the module name
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/mallard-templates] g-ir-doc-tool: Qualify the class name in the constructor with the module name
- Date: Mon, 20 Feb 2012 12:22:21 +0000 (UTC)
commit 2a159369403da1e8ccd780f3e630f7963ad1fa96
Author: Tomeu Vizoso <tomeu vizoso collabora com>
Date: Mon Feb 20 13:21:40 2012 +0100
g-ir-doc-tool: Qualify the class name in the constructor with the module name
giscanner/mallard-Python-class.tmpl | 2 +-
.../GIRepository.Repository.page | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/giscanner/mallard-Python-class.tmpl b/giscanner/mallard-Python-class.tmpl
index feae1d1..5437fcd 100644
--- a/giscanner/mallard-Python-class.tmpl
+++ b/giscanner/mallard-Python-class.tmpl
@@ -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\
diff --git a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.page b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.page
index dda7295..a5dd47b 100644
--- a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.page
+++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.page
@@ -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">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]