added Venue to objectcache

master
Abhinav Sarkar 2009-03-05 12:13:53 +00:00
parent ea99e1cc44
commit 4f3d8fd499
1 changed files with 2 additions and 1 deletions

View File

@ -15,12 +15,13 @@ from lastfm.playlist import Playlist
from lastfm.tag import Tag
from lastfm.track import Track
from lastfm.user import User
from lastfm.venue import Venue
from lastfm.weeklychart import WeeklyAlbumChart, WeeklyArtistChart, WeeklyTrackChart
class ObjectCache(object):
"""The registry to contain all the entities"""
keys = [c.__name__ for c in [Album, Artist, Event, Location, Country, Group,
Playlist, Tag, Track, User, WeeklyAlbumChart, WeeklyArtistChart, WeeklyTrackChart]]
Playlist, Tag, Track, User, Venue, WeeklyAlbumChart, WeeklyArtistChart, WeeklyTrackChart]]
def __getitem__(self, name):
if name not in ObjectCache.keys: