def location(self):
return location.Database("/var/lib/location/database.db")
+ def get_country_name(self, country_code):
+ country = self.location.get_country(country_code)
+
+ if country:
+ return country.name
+
@lazy_property
def ratelimiter(self):
return ratelimit.RateLimiter(self)