On Apr 23, James Rubino <james.rub...@gmail.com> wrote:

> When a object is updated, does the IMDbPy update all possible keys

The 'update' method, called with only a Movie/Person/... object
as argument, will update it with a default list of 'data sets'; those
depend on the type of the object.
For example, look at default_info defined in the Movie class.
Then you can specify, with the 'info' argument, a data set or
a list of data sets to be fetched.
The "all" data set name has an obvious meaning. :-)

> (doing a complete parse-fetch) or just the missing/changed/different
> keys from the local object?

The granularity is at data set level: by default, the update method
doesn't re-parse/re-fetch a data set that was already retrieved.
This behavior can be modified setting the 'override' argument to True.
Normally, there's no need to use it.
Notice that there is no guarantee that a single data set will add
a _single_ key to the object: there are (few) data sets that will
add more than one key, and - obviously - if there are no info, no
key will be added.


Bye!
-- 
Davide Alberani <davide.alber...@gmail.com> [PGP KeyID: 0x465BFD47]
http://erlug.linux.it/~da/

------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to