I'm quite new to python, so this may be a trivial question, but, what type does 'person.currentRole' return, it doesn't seem to be a string, since I receive an error about type when attempting to autoadd it as a charfield type. How can I alter it so that it is a string? Thanks.
On Mon, Jul 13, 2009 at 5:23 AM, Davide Alberani <davide.alber...@gmail.com>wrote: > On Jul 05, Zachary Borschuk <zachary.borsc...@gmail.com> wrote: > > > Hello, > > Hi! > First of all, my apologizes for the long delay: the notification for > your message was caught by my spam filter. :-/ > > > I am attempting to use this program to create a personal movie database, > and > > I was wondering how I can get 'get_first_movie.py' to display more than 5 > > actors and roles. > > get_first_movie.py is just an example; it calls the 'summary' method > of the imdb.Movie.Movie class, which in turns is a simple example of > how to display basic information about a movie. > You can modify the 'summary' method, but I strongly discourage you: > after all the code will be overridden at the next update of IMDbPY. > > Your best option is to look at example files like get_movie.py and > search_movie.py, and use them to create your own script. > > > I'd like to have it retrieve the entire cast list. > > Provided that you're not using the 'mobile' data access system, > the whole cast list is always retrieved. > > Using http://imdbpy.sourceforge.net/index.php?page=docs#examples as > a base, you can add at the end of the script lines like: > for person in the_unt['cast']: > print person.personID, person['name'], person.currentRole, > person.notes > > And so on. > > If you have any question feel free to ask! > > -- > Davide Alberani <davide.alber...@gmail.com> [GPG KeyID: 0x465BFD47] > http://erlug.linux.it/~da/ <http://erlug.linux.it/%7Eda/> > -- Zack Borschuk "The only place success comes before work is in the dictionary." - Vince Lombardi
------------------------------------------------------------------------------
_______________________________________________ Imdbpy-help mailing list Imdbpy-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/imdbpy-help