Example #1
0
def user_city(context):
    ip = get_ip(context['request'])
    return get_city(ip)
Example #2
0
 def city(self):
     """ Return city name using Telize or Geoip."""
     return get_city(self.ip)
Example #3
0
 def city(self):
     """ Return city name using Telize or Geoip."""
     return get_city(self.ip)