summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chimere/widgets.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/chimere/widgets.py b/chimere/widgets.py
index 3965256..7d92684 100644
--- a/chimere/widgets.py
+++ b/chimere/widgets.py
@@ -320,9 +320,9 @@ class PointChooserWidget(forms.TextInput):
value = None
map_layers, default_area, zoom = get_map_layers(area_name,
get_area_zoom=True)
- map_layers = [js for n, js, default, extra_js in map_layers if js]
extra_js = [extra_js for n, js, default, extra_js in map_layers
if extra_js]
+ map_layers = [js for n, js, default, xtra_js in map_layers if js]
# TODO: manage area
return mark_safe(
render_to_string('chimere/blocks/live_coordinates.html',
@@ -401,9 +401,9 @@ class RouteChooserWidget(forms.TextInput):
'''
tpl = getMapJS(area_name)
map_layers, default_area = get_map_layers(area_name)
- map_layers = [js for nm, js, default in map_layers]
extra_js = [extra_js for n, js, default, extra_js in map_layers
if extra_js]
+ map_layers = [js for nm, js, default, ext_js in map_layers]
js = u"""
var resolutions;
var zoomOffset;
@@ -649,10 +649,10 @@ class PolygonChooserWidget(forms.TextInput):
val = str(value)
map_layers, default_area, zoom = get_map_layers(area_name,
get_area_zoom=True)
- map_layers = [js for n, js, default in map_layers
- if 'OpenLayers' not in js]
extra_js = [extra_js for n, js, default, extra_js in map_layers
if extra_js]
+ map_layers = [js for n, js, default, ext_js in map_layers
+ if 'OpenLayers' not in js]
tpl = render_to_string(
'chimere/blocks/polygon_edit.html',
{'name': name, 'val': val, 'initialized': initialized,