Ignore:
Timestamp:
10/06/10 22:05:28 (10 years ago)
Author:
astephen
Message:

fixes to chain processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/cows_wps/controllers/jobviewer.py

    r6975 r6976  
    125125        for (i, item) in enumerate(items): 
    126126            x = job_details.find("{" + self.namespace +  "}" + item).text 
    127             if type(x) != str: x = "Undefined" 
     127            if type(x) != str:  
     128                x = "Undefined" 
     129 
     130            x = x.strip() 
     131            if item == "JobCapabilities" and x.find("send_to_extract_weather_data") > -1: 
     132                x = x.replace("send_to_extract_weather_data",  
     133                  '<a href="/submit/form?proc_id=ExtractUKStationData&StationsFileURL=%s">Use stations to extract UK weather data</a>' % file_set_list[0].find("{" + self.namespace +  "}FileURL").text) 
     134  
    128135            resp += "<b>%s</b> = %s<br>" % (mapped_names[i], x.strip()) 
    129136 
Note: See TracChangeset for help on using the changeset viewer.