Browse Source

a few last tweaks to fix errors found during testing. fixes #49

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
dddc9e5758
  1. 8
      pyweb/mumble/management/server_detect.py

8
pyweb/mumble/management/server_detect.py

@ -97,7 +97,7 @@ def find_existing_instances( **kwargs ):
"dbus": dbusName, "dbus": dbusName,
} }
if v:
if v > 1:
print 'Found new Murmur instance... ', print 'Found new Murmur instance... ',
# now create a model for the record set. # now create a model for the record set.
@ -107,15 +107,17 @@ def find_existing_instances( **kwargs ):
print "Syncing Murmur instance... ", print "Syncing Murmur instance... ",
instance.configureFromMurmur(); instance.configureFromMurmur();
if v > 1:
print instance.name; print instance.name;
instance.save( dontConfigureMurmur=True ); instance.save( dontConfigureMurmur=True );
# Now search for players on this server that have not yet been registered # Now search for players on this server that have not yet been registered
if v > 1: if v > 1:
print "Looking for registered Players on Server id %d." % id; print "Looking for registered Players on Server id %d." % id;
if id in bootedIDs:
if instance.booted:
players = ctl.getRegisteredPlayers(id); players = ctl.getRegisteredPlayers(id);
for playerdata in players: for playerdata in players:

Loading…
Cancel
Save