summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/PythonUtil.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2012-12-26 15:16:24 -0800
committerMark Spruiell <mes@zeroc.com>2012-12-26 15:16:24 -0800
commit899c375da6787c33073997eb3722342a0cc971f3 (patch)
tree9f369f06baa9634c88f6c646e9f399ab44d49657 /cpp/src/Slice/PythonUtil.cpp
parentOS X installer updates (diff)
downloadice-899c375da6787c33073997eb3722342a0cc971f3.tar.bz2
ice-899c375da6787c33073997eb3722342a0cc971f3.tar.xz
ice-899c375da6787c33073997eb3722342a0cc971f3.zip
compact ID support for scripting languages
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-rw-r--r--cpp/src/Slice/PythonUtil.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp
index a9efb9c9e63..de9f2bc15ab 100644
--- a/cpp/src/Slice/PythonUtil.cpp
+++ b/cpp/src/Slice/PythonUtil.cpp
@@ -793,7 +793,8 @@ Slice::Python::CodeVisitor::visitClassDefStart(const ClassDefPtr& p)
}
DataMemberList members = p->dataMembers();
- _out << sp << nl << "_M_" << type << " = IcePy.defineClass('" << scoped << "', " << name << ", ";
+ _out << sp << nl << "_M_" << type << " = IcePy.defineClass('" << scoped << "', " << name << ", " << p->compactId()
+ << ", ";
writeMetaData(p->getMetaData());
const bool preserved = p->hasMetaData("preserve-slice") || p->inheritsMetaData("preserve-slice");
_out << ", " << (isAbstract ? "True" : "False") << ", " << (preserved ? "True" : "False") << ", ";