bug 7368 : Geography gramplet does not communicate over proxy server with autorisation.
This commit is contained in:
parent
7f757e0304
commit
ca8f2626c4
@ -188,11 +188,17 @@ class osmGpsMap():
|
||||
constants.map_title[map_type])
|
||||
config.set("geography.map_service", map_type)
|
||||
self.current_map = map_type
|
||||
http_proxy = os.environ['http_proxy']
|
||||
if 0:
|
||||
self.osm = DummyMapNoGpsPoint()
|
||||
else:
|
||||
self.osm = osmgpsmap.GpsMap(tile_cache=tiles_path,
|
||||
map_source=constants.map_type[map_type])
|
||||
if http_proxy == "":
|
||||
self.osm = osmgpsmap.GpsMap(tile_cache=tiles_path,
|
||||
map_source=constants.map_type[map_type])
|
||||
else:
|
||||
self.osm = osmgpsmap.GpsMap(tile_cache=tiles_path,
|
||||
proxy_uri=http_proxy,
|
||||
map_source=constants.map_type[map_type])
|
||||
current_map = osmgpsmap.GpsMapOsd( show_dpad=False, show_zoom=True)
|
||||
self.end_selection = None
|
||||
self.osm.layer_add(current_map)
|
||||
|
Loading…
Reference in New Issue
Block a user