Part of lp.services.geoip
|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.|
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.