added events method to Country class

This commit is contained in:
Abhinav Sarkar 2008-08-27 20:03:14 +00:00
parent f85089fe20
commit 9fdfaaf936

View File

@ -267,6 +267,11 @@ class Country(LastfmBase):
"""top tracks of the country""" """top tracks of the country"""
return Geo.getTopTracks(self.__api, self.name) return Geo.getTopTracks(self.__api, self.name)
@LastfmBase.cachedProperty
def events(self):
"""events taking place at/around the location"""
return Geo.getEvents(self.__api, self.name)
@LastfmBase.topProperty("topTracks") @LastfmBase.topProperty("topTracks")
def topTrack(self): def topTrack(self):
"""top track of the country""" """top track of the country"""