From 9fdfaaf936c5a24c8e04a463bb3725f570babe07 Mon Sep 17 00:00:00 2001 From: Abhinav Sarkar Date: Wed, 27 Aug 2008 20:03:14 +0000 Subject: [PATCH] added events method to Country class --- src/geo.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/geo.py b/src/geo.py index 378b114..b43301b 100644 --- a/src/geo.py +++ b/src/geo.py @@ -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):