Browse Source

fix Ice context not having been initialized properly

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
1066f10daa
  1. 10
      pyweb/mumble/MumbleCtlIce.py

10
pyweb/mumble/MumbleCtlIce.py

@ -59,9 +59,17 @@ def MumbleCtlIce( connstring, slicefile=None, icesecret=None ):
exports a getSlice method to retrieve the Slice from. 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: if icesecret:
ice.getImplicitContext().put( "secret", icesecret.encode("utf-8") ) ice.getImplicitContext().put( "secret", icesecret.encode("utf-8") )
prx = ice.stringToProxy( connstring.encode("utf-8") ) prx = ice.stringToProxy( connstring.encode("utf-8") )
try: try:

Loading…
Cancel
Save