From bcfeedbb0d5fd34a6787bc4fd8c62b0a07321a47 Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Wed, 24 Feb 2010 20:49:22 +0100 Subject: [PATCH] coerce config properties to unicode instead of str by default --- pyweb/mumble/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyweb/mumble/models.py b/pyweb/mumble/models.py index 9498431..676d851 100644 --- a/pyweb/mumble/models.py +++ b/pyweb/mumble/models.py @@ -26,7 +26,7 @@ from mumble.mmobjects import mmChannel, mmPlayer 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. """ def get_field( self ): @@ -152,7 +152,7 @@ class Mumble( models.Model ): else: self.ctl.stop( self.srvid ); - booted = property( getBooted, setBooted, doc="Boot Server" ) + booted = property( getBooted, setBooted, doc=_("Boot Server") ) class Meta: unique_together = ( ( 'server', 'srvid' ), );