On Jul 11, "H. Turgut Uyar" <[EMAIL PROTECTED]> wrote: > > Another thing I want to do is to use the _ModuleProxy architecture > > to let old and new parsers selectable at runtime: it would be very > > useful for the transition phase. > > Yes, that would be nice.
Done in the CVS. Basically, now the _OBJECTS dictionaries contains, as the first item of its values, a tuple of two classes: the first one is the new parser, the second one is the old. If the new one is still not here, they are the same. At run-time you can do something like this: import sys from imdb import IMDb i = IMDb('http', oldParsers=True) p = i.get_person('0000154') print p, p.keys() The default for oldParsers is False, so the new parsers are used. I think this can improve a lot the debugging process. -- Davide Alberani <[EMAIL PROTECTED]> [PGP KeyID: 0x465BFD47] http://erlug.linux.it/~da/ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Imdbpy-devel mailing list Imdbpy-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/imdbpy-devel