From 1066f10daa1009f1a89d54063a0b85b2599c5d96 Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Sat, 20 Feb 2010 12:48:50 +0100 Subject: [PATCH] fix Ice context not having been initialized properly --- pyweb/mumble/MumbleCtlIce.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pyweb/mumble/MumbleCtlIce.py b/pyweb/mumble/MumbleCtlIce.py index e060506..03330d1 100644 --- a/pyweb/mumble/MumbleCtlIce.py +++ b/pyweb/mumble/MumbleCtlIce.py @@ -59,9 +59,17 @@ def MumbleCtlIce( connstring, slicefile=None, icesecret=None ): exports a getSlice method to retrieve the Slice from. """ - ice = Ice.initialize() + prop = Ice.createProperties([]) + prop.setProperty("Ice.ImplicitContext", "Shared") + + idd = Ice.InitializationData() + idd.properties = prop + + ice = Ice.initialize(idd) + if icesecret: ice.getImplicitContext().put( "secret", icesecret.encode("utf-8") ) + prx = ice.stringToProxy( connstring.encode("utf-8") ) try: