Browse Source

coerce config properties to unicode instead of str by default

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
bcfeedbb0d
  1. 4
      pyweb/mumble/models.py

4
pyweb/mumble/models.py

@ -26,7 +26,7 @@ from mumble.mmobjects import mmChannel, mmPlayer
from mumble.mctl import MumbleCtlBase from mumble.mctl import MumbleCtlBase
def mk_config_property( field, doc="", get_coerce=None, get_none=None, set_coerce=str, set_none='' ):
def mk_config_property( field, doc="", get_coerce=None, get_none=None, set_coerce=unicode, set_none='' ):
""" Create a property for the given config field. """ """ Create a property for the given config field. """
def get_field( self ): def get_field( self ):
@ -152,7 +152,7 @@ class Mumble( models.Model ):
else: else:
self.ctl.stop( self.srvid ); self.ctl.stop( self.srvid );
booted = property( getBooted, setBooted, doc="Boot Server" )
booted = property( getBooted, setBooted, doc=_("Boot Server") )
class Meta: class Meta:
unique_together = ( ( 'server', 'srvid' ), ); unique_together = ( ( 'server', 'srvid' ), );

Loading…
Cancel
Save