On Mon, 2010-08-09 at 16:33 -0400, Jason Tackaberry wrote: > On Mon, 2010-08-09 at 22:22 +0200, Dirk Meyer wrote: > > P.S.: I'm not sure, but I guess there is a bug in kaa.config somewhere. > > For some reason a variable with True as default is detected as bool > > while a variable with False as default is not. I have to investigate it > > further, not today > > If I get a chance tonight I'll take a look.
I looked but couldn't find any problems, so I'll have to leave it to you to reproduce. >>> from kaa.config import Var, get_type >>> foo, bar = Var(default=True), Var(default=False) >>> get_type(foo), get_type(bar) (<type 'bool'>, <type 'bool'>) >>> foo._stringify(), bar._stringify() ('None = <default: True>', 'None = <default: False>') >>> foo._cfg_set(False), bar._cfg_set(True) (False, True) >>> foo._stringify(), bar._stringify() ('None = False', 'None = True') (It's saying "None =" because the vars have no parents, of course.) ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel