From 294ec25fda6e3785c54970d274b860b1ca837955 Mon Sep 17 00:00:00 2001 From: Matthew Newhook Date: Thu, 14 Feb 2008 16:22:39 +0800 Subject: merged bug2615 --- 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