would you prefer this:
if not hasattr(parent, 'add_args') or
type(parent.add_args) is not types.TupleType:
return []
or this:
if not hasattr(parent, 'add_args') or
type(parent.add_args) is not types.TupleType:
return [menu.MenuItem(_('DIR GAMES FORMAT CHANGED. PLEASE UPDATE
local_conf.py'), menuwidget.goto_prev_page, 0)]
I prefer the second but it means adding menuwidget and menu to someplace
it hasn't been before.
Also i am using types to detect the type of add_args. is this a good
thing to do? i.e. i know it works but is it the proper python way of
doing this?
Mike
On Tue, 2003-09-16 at 05:15, Dirk Meyer wrote:
> Michael Ruelle wrote:
> > The DIR_GAMES setup has changed in freevo cvs. have you updated your
> > DIR_GAMES variable to match the new setup?
>
> Maybe you can add some detection to config.py to print a warning when
> DIR_GAMES ist wrong.
>
>
> Dischi
--
Mike Ruelle
[EMAIL PROTECTED]
http://world.std.com/~mruelle/
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users