summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/PythonUtil.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2008-02-12 13:12:06 -0330
committerDwayne Boone <dwayne@zeroc.com>2008-02-12 13:12:06 -0330
commit3af302d7e122640425a50cfa085d15e1384b1501 (patch)
tree82dfc425dc3e731a2569e82e5aaf3c4bd4a524a3 /cpp/src/Slice/PythonUtil.cpp
parentMerge branch 'master' of ssh://cvs.zeroc.com/home/git/ice (diff)
downloadice-3af302d7e122640425a50cfa085d15e1384b1501.tar.bz2
ice-3af302d7e122640425a50cfa085d15e1384b1501.tar.xz
ice-3af302d7e122640425a50cfa085d15e1384b1501.zip
Bug 2582 - Added ice_staticId
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-rw-r--r--cpp/src/Slice/PythonUtil.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp
index 75ed5d400b8..517fabbbdf5 100644
--- a/cpp/src/Slice/PythonUtil.cpp
+++ b/cpp/src/Slice/PythonUtil.cpp
@@ -526,6 +526,15 @@ Slice::Python::CodeVisitor::visitClassDefStart(const ClassDefPtr& p)
_out.inc();
_out << nl << "return '" << scoped << "'";
_out.dec();
+
+ //
+ // ice_staticId
+ //
+ _out << sp << nl << "def ice_staticId():";
+ _out.inc();
+ _out << nl << "return '" << scoped << "'";
+ _out.dec();
+ _out << nl << "ice_staticId = staticmethod(ice_staticId)";
}
if(!ops.empty())