l.s.g.model : module documentation

Part of lp.services.geoip

No module docstring
Class GeoIP See IGeoIP.
Class GeoIPRequest An adapter for a BrowserRequest into an IGeoIPRecord.
Class RequestLocalLanguages No class docstring; 1/2 methods documented
Class RequestPreferredLanguages No class docstring; 1/2 methods documented
Function ensure_address_is_not_private Return the given IP address if it doesn't start with '127.'.
Class NoGeoIPDatabaseFound No GeoIP database was found.
def ensure_address_is_not_private(ip_address):
Return the given IP address if it doesn't start with '127.'.

If it does start with '127.' then we return a South African IP address. Notice that we have no specific reason for using a South African IP address here -- we could have used any other non-private IP address.

API Documentation for Launchpad, generated by pydoctor at 2018-11-21 00:00:05.