Browse Source

bugfix: used syntax that is not available in python 2.4

Natenom/support-murmur-13-1446181288462
Michael Ziegler 16 years ago
parent
commit
24ff9ce515
  1. 13
      pyweb/mumble/models.py

13
pyweb/mumble/models.py

@ -172,11 +172,16 @@ class MumbleUser( models.Model ):
# Update user's registration
if self.password:
if self.owner:
email = self.owner.email
else:
email = settings.DEFAULT_FROM_EMAIL;
murmur.setRegistration(
dbus.Int32( self.mumbleid ),
dbus.String( self.name ),
dbus.String( self.owner.email if self.owner else settings.DEFAULT_FROM_EMAIL ),
dbus.String( self.password )
dbus.Int32( self.mumbleid ),
dbus.String( self.name ),
dbus.String( email ),
dbus.String( self.password )
);
# Don't save the users' passwords, we don't need them anyway

Loading…
Cancel
Save