Re: freevo2 trunk: status

Jason Tackaberry <[email protected]>
Newsgroups gmane.comp.video.freevo.devel
Message-ID <1281393406.18854.46.camel@willow>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.