removed "DAOTYPE" setting (that's what the dbus field in the Mumble model is for), and added an automatic switch between the methods to MumbleCtlBase. repaired management.py.
print"Unable to connect to DBus using name %s. Is Murmur even running!?"%dbusName;
dbusName=raw_input("DBus Service name (or empty to skip Servers/Players detection): ");
print
print"--- Murmur connection info ---"
print" 1) DBus -- net.sourceforge.mumble.murmur"
print" 2) ICE -- Meta:tcp -h 127.0.0.1 -p 6502"
print"Enter 1 or 2 for the defaults above, nothing to skip Server detection,"
print"and if the defaults do not fit your needs, enter the correct string."
print"Whether to use DBus or ICE will be detected automatically from the"
print"string's format."
print
dbusName=raw_input("Service string: ");
ifnotdbusName:
ifnotdbusName:
ifv:
ifv:
print'Be sure to run "python manage.py syncdb" with Murmur running before trying to use this app! Otherwise, existing Murmur servers won\'t be configurable!';
print'Be sure to run "python manage.py syncdb" with Murmur running before trying to use this app! Otherwise, existing Murmur servers won\'t be configurable!';
returnFalse;
returnFalse;
elifdbusName=="1":
dbusName="net.sourceforge.mumble.murmur";
elifdbusName=="2":
dbusName="Meta:tcp -h 127.0.0.1 -p 6502";
try:
ctl=MumbleCtlBase.newInstance(dbusName);
exceptException,instance:
ifv:
print"Unable to connect using name %s. The error was:"%dbusName;
printinstance;
else:
else:
online=True;
online=True;
ifv>1:
ifv>1:
print"Successfully connected to Murmur via DBus (%s)."%dbusName;
'''
print"Successfully connected to Murmur via connection string %s, using %s."%(dbusName,ctl.method);