From 005998b0fe3bcc3fb4e4a850b49164c4e19eb441 Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Thu, 26 Jun 2014 20:54:48 +0000 Subject: Fix for ICE-5515 (ice_staticId on proxies) in Java, C#, Python, Ruby and PHP (not complete in Python, Ruby and PHP) --- cpp/src/Slice/PythonUtil.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cpp/src/Slice/PythonUtil.cpp') diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp index 59f4e98ab51..bfdf33a7b8d 100644 --- a/cpp/src/Slice/PythonUtil.cpp +++ b/cpp/src/Slice/PythonUtil.cpp @@ -779,7 +779,17 @@ Slice::Python::CodeVisitor::visitClassDefStart(const ClassDefPtr& p) _out.dec(); _out << nl << "uncheckedCast = staticmethod(uncheckedCast)"; + + // + // ice_staticId + // + _out << sp << nl << "def ice_staticId():"; + _out.inc(); + _out << nl << "return '" << scoped << "'"; _out.dec(); + _out << nl << "ice_staticId = staticmethod(ice_staticId)"; + + _out.dec(); _out << sp << nl << "_M_" << prxType << " = IcePy.defineProxy('" << scoped << "', " << prxName << ")"; } -- cgit v1.2.3