0001-misc-don-t-look-for-jsonp-display-value-in-a-cron-jo.patch
wcs/fields.py | ||
---|---|---|
1186 | 1186 |
self.perform_more_widget_changes(None, kwargs, False) |
1187 | 1187 |
real_data_source = data_sources.get_real(self.data_source) |
1188 | 1188 |
if real_data_source and real_data_source.get('type') == 'jsonp': |
1189 |
display_value = get_request().form.get('f%s_display' % field_id) |
|
1190 |
if display_value is None: |
|
1191 |
if not get_session().jsonp_display_values: |
|
1192 |
get_session().jsonp_display_values = {} |
|
1193 |
display_value = get_session().jsonp_display_values.get( |
|
1194 |
'%s_%s' % (real_data_source.get('value'), value)) |
|
1195 |
else: |
|
1196 |
if not get_session().jsonp_display_values: |
|
1197 |
get_session().jsonp_display_values = {} |
|
1198 |
get_session().jsonp_display_values[ |
|
1199 |
'%s_%s' % (real_data_source.get('value'), value)] = display_value |
|
1200 |
return display_value |
|
1189 |
if get_request(): |
|
1190 |
display_value = get_request().form.get('f%s_display' % field_id) |
|
1191 |
if display_value is None: |
|
1192 |
if not get_session().jsonp_display_values: |
|
1193 |
get_session().jsonp_display_values = {} |
|
1194 |
display_value = get_session().jsonp_display_values.get( |
|
1195 |
'%s_%s' % (real_data_source.get('value'), value)) |
|
1196 |
else: |
|
1197 |
if not get_session().jsonp_display_values: |
|
1198 |
get_session().jsonp_display_values = {} |
|
1199 |
get_session().jsonp_display_values[ |
|
1200 |
'%s_%s' % (real_data_source.get('value'), value)] = display_value |
|
1201 |
return display_value |
|
1201 | 1202 |
elif type(kwargs['options'][0]) in (tuple, list): |
1202 | 1203 |
if len(kwargs['options'][0]) == 2: |
1203 | 1204 |
for key, option_value in kwargs['options']: |
1204 |
- |