Skip to content

Commit

Permalink
Add 'adult' and 'alias' to Person class.
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnerrp committed Mar 30, 2012
1 parent 263d868 commit 3892279
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tmdb3/tmdb_api.py
Expand Up @@ -22,7 +22,7 @@
Preliminary API specifications can be found at Preliminary API specifications can be found at
http://help.themoviedb.org/kb/api/about-3""" http://help.themoviedb.org/kb/api/about-3"""


__version__="v0.4.1" __version__="v0.4.3"
# 0.1.0 Initial development # 0.1.0 Initial development
# 0.2.0 Add caching mechanism for API queries # 0.2.0 Add caching mechanism for API queries
# 0.2.1 Temporary work around for broken search paging # 0.2.1 Temporary work around for broken search paging
Expand All @@ -36,6 +36,8 @@
# 0.3.7 Generalize caching mechanism, and allow controllability # 0.3.7 Generalize caching mechanism, and allow controllability
# 0.4.0 Add full locale support (language and country) and optional fall through # 0.4.0 Add full locale support (language and country) and optional fall through
# 0.4.1 Add custom classmethod for dealing with IMDB movie IDs # 0.4.1 Add custom classmethod for dealing with IMDB movie IDs
# 0.4.2 Improve cache file selection for Windows systems
# 0.4.3 Add a few missed Person properties


from request import set_key, Request from request import set_key, Request
from util import Datapoint, Datalist, Datadict, Element from util import Datapoint, Datalist, Datadict, Element
Expand Down Expand Up @@ -132,6 +134,8 @@ class Person( Element ):
homepage = Datapoint('homepage') homepage = Datapoint('homepage')
birthplace = Datapoint('place_of_birth') birthplace = Datapoint('place_of_birth')
profile = Datapoint('profile_path', handler=Profile, raw=False) profile = Datapoint('profile_path', handler=Profile, raw=False)
adult = Datapoint('adult')
aliases = Datalist('also_known_as')


def __repr__(self): def __repr__(self):
return u"<{0} '{1.name}' at {2}>".\ return u"<{0} '{1.name}' at {2}>".\
Expand Down

0 comments on commit 3892279

Please sign in to comment.