clearwing

changeset 201:a436ab67f0d3 1.2.3-genius

Fix for table plotter for BlueQuery Firethorn changes
author Stelios <stv@roe.ac.uk>
date Thu Mar 02 17:39:37 2017 +0000 (2017-03-02)
parents 3d6b7d8f3333
children 71aa97f9cb47
files src/freeform_sql/misc.py
line diff
     1.1 --- a/src/freeform_sql/misc.py	Wed Feb 22 19:21:10 2017 +0000
     1.2 +++ b/src/freeform_sql/misc.py	Thu Mar 02 17:39:37 2017 +0000
     1.3 @@ -878,6 +878,8 @@
     1.4          if row_length>0:
     1.5              cols = list(cols)
     1.6              content=''
     1.7 +            tap_endpoint=get_info(query_results_id)["results"]["table"]
     1.8 +            tap_endpoint=get_parent_workspace(get_parent_workspace(tap_endpoint))
     1.9              if tap_endpoint!="" and query!="" and mode=='adql':
    1.10                  content = '<span style="height:33px;text-align:left;float:right;font-size:12px;color:#C2BEAD">Query ID <a id="toggle_query_info">[+]</a><a id="toggle_query_info_help">[?]</a><br/><span id="toggle_query_info_div" style="display:none">'+ query_results_id.split("/")[-1]  + '</span></span>'
    1.11                  content += '<form style="float:left;z-index:100;position: relative;" class="launch_viewer" action="' + survey_prefix + '/viewer" method="post" target="_blank"><input type="hidden" name="query" value="'+ string_functions.encode(query) +'"/><input type="hidden" name="cols" value="'+ html_functions.escape(json.dumps(cols)) +'"/><input type="hidden" name="filepath" id="temp_file" value="'+ pathname +'"/><input type="hidden" name="tap_endpoint" value="'+ tap_endpoint +'"/>'