|
@ -80,8 +80,7 @@ class Mumble( models.Model ): |
|
|
return u'Murmur "%s" (%d)' % ( self.name, self.srvid ); |
|
|
return u'Murmur "%s" (%d)' % ( self.name, self.srvid ); |
|
|
|
|
|
|
|
|
def save( self, dontConfigureMurmur=False ): |
|
|
def save( self, dontConfigureMurmur=False ): |
|
|
""" |
|
|
|
|
|
Save the options configured in this model instance not only to Django's database, |
|
|
|
|
|
|
|
|
""" Save the options configured in this model instance not only to Django's database, |
|
|
but to Murmur as well. |
|
|
but to Murmur as well. |
|
|
""" |
|
|
""" |
|
|
if dontConfigureMurmur: |
|
|
if dontConfigureMurmur: |
|
@ -493,6 +492,7 @@ class MumbleUser( models.Model ): |
|
|
comment = property( getComment, doc=getComment.__doc__ ); |
|
|
comment = property( getComment, doc=getComment.__doc__ ); |
|
|
|
|
|
|
|
|
def getHash( self ): |
|
|
def getHash( self ): |
|
|
|
|
|
""" Retrieve a user's hash, if any. """ |
|
|
if "hash" in self.registration: |
|
|
if "hash" in self.registration: |
|
|
return self.registration["hash"]; |
|
|
return self.registration["hash"]; |
|
|
else: |
|
|
else: |
|
|