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

@ -266,6 +266,11 @@ class Country(LastfmBase):
def topTracks(self):
"""top tracks of the country"""
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")
def topTrack(self):