aboutsummaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-01-28 17:15:33 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:13:51 -0300
commit70774513a8190d4eaf18496e7833ab4c521fbb34 (patch)
tree6fdbd8c28b5f0de41720c6ebab33dbb1f3d0f888 /generator
parent38e10e17700b5381022315729f531f2b863ee3ae (diff)
Type system %TYPE variable is now available for class wide custom code.
%TYPE documentation was updated.
Diffstat (limited to 'generator')
-rw-r--r--generator/shibokengenerator.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/generator/shibokengenerator.cpp b/generator/shibokengenerator.cpp
index 06e526775..72f396d0e 100644
--- a/generator/shibokengenerator.cpp
+++ b/generator/shibokengenerator.cpp
@@ -1144,6 +1144,7 @@ void ShibokenGenerator::writeCodeSnips(QTextStream& s,
// replace template variable for the Python Type object for the
// class context in which the variable is used
code.replace("%PYTHONTYPEOBJECT", cpythonTypeName(context) + ".super.ht_type");
+ code.replace("%TYPE", wrapperName(context));
}
// replace "toPython "converters