Changeset 6896
- Timestamp:
- 27/05/10 16:19:04 (11 years ago)
- Location:
- cows_wps/trunk/cows_wps
- Files:
-
- 5 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cows_wps/trunk/cows_wps/controllers/submit.py
r6125 r6896 4 4 from pylons import request, response, session, tmpl_context as c 5 5 from pylons.controllers.util import abort, redirect_to 6 from routes import url_for 6 7 7 8 from cows_wps.renderer.ui_renderer import * … … 57 58 wps_request = wps_request[:-1] 58 59 59 return redirect_to(wps_request) 60 submitter_url = url_for(controller='/submitter', wps_request_url = wps_request, 61 proc_id = proc_id) 62 #return redirect_to(wps_request) 63 #return "%s" % submitter_url 64 return redirect_to(submitter_url) 60 65 61 66 def _handleTextAreaInput(self, value): -
cows_wps/trunk/cows_wps/public/js/ui/submit_utils.js
r6124 r6896 40 40 } 41 41 42 /* 43 function makeWPSRequest: 44 * Makes a request to the WPS using Jquery AJAX 45 Dependencies: 46 * Jquery 47 */ 48 function makeWPSRequest(wps_url, info_div_id) { 49 // Inform that request is being made 50 $("#" + info_div_id).append("Your request is being submitted to the WPS..."); 51 52 // Set up AJAX call 53 $.ajax({ 54 type: "GET", 55 url: wps_url, 56 dataType: "xml", 57 success: parseWPSResponse 58 }); 59 } 60 61 function parseWPSResponse(xml) 62 { 63 var items = ["FileSize", "FileInfo"]; 64 for (var i = 0; i < items.length; i++) { 65 item = items[i]; 66 67 $(xml).find(item).each(function() 68 { 69 $("#wps_response_div").append(item + ": " + $(this).text() + "<br />"); 70 }); 71 72 } 73 } 74 75 -
cows_wps/trunk/cows_wps/templates/wps_execute_response.xml
r5615 r6896 50 50 value = input_dict[arg] 51 51 if type(value) not in (unicode, str): 52 value = ','.join( value)52 value = ','.join([str(i) for i in value]) 53 53 ?> 54 54 <ows:Identifier>$arg</ows:Identifier>
Note: See TracChangeset
for help on using the changeset viewer.