def get_user_location():
 if (c.user and c.user.pref_use_global_defaults):
  return ''
 return get_request_location(request, c)

def get_user_location ( ) : if ( c . user and c . user . pref_use_global_defaults ) : return '' return get_request_location ( request , c )
determine country of origin for the current user this is provided via a call to geoip .