From 3af302d7e122640425a50cfa085d15e1384b1501 Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Tue, 12 Feb 2008 13:12:06 -0330 Subject: Bug 2582 - Added ice_staticId --- cpp/src/Slice/PythonUtil.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cpp/src/Slice/PythonUtil.cpp') 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()) -- cgit v1.2.3