Changeset 5985 for cows_wps


Ignore:
Timestamp:
10/11/09 15:38:34 (10 years ago)
Author:
astephen
Message:

lots of new bits.

Location:
cows_wps/trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/cows_wps/public/js/ui/type_ahead_dirs.js

    r5983 r5985  
    66function hideSuggestions() { 
    77        $("#resp").css("visibility", "hidden"); 
     8        $("#resp").css("z-index", -1); 
    89} 
    910 
    1011function showSuggestions() { 
    1112        $("#resp").css("visibility", "visible"); 
     13        $("#resp").css("z-index", 0); 
    1214} 
     15 
    1316 
    1417function renderSuggestions(chosen) { 
     
    1619                chosen = -1; 
    1720        } 
    18         var list = ""; 
     21        var list = new Array(); 
    1922 
    2023        for (var i = 0; i < current_list.length; i++) { 
     
    2326                        list_item = "<span style=\"color: red;\">" + list_item + "</span>"; 
    2427                } 
    25                 list = list + "<br />" + list_item; 
     28                list.push(list_item); 
    2629        } 
    27         $("#resp").html(list); 
     30        var html_list = list.join("<br />"); 
     31 
     32        $("#resp").html(html_list); 
    2833        showSuggestions(); 
    2934} 
  • cows_wps/trunk/process_configs/ConfigTemplate.ini

    r5960 r5985  
    11[wps_interface] 
    2 process_callable = process_modules.module_template#MyProcess 
     2process_callable = process_modules.process_template#MyProcess 
    33process_type = sync 
    44dry_run_enabled = False 
  • cows_wps/trunk/process_modules/process_template.py

    r5960 r5985  
    2121        # Parse the inputs 
    2222        Username = context.inputs['Username'] 
    23         MyArgument = context.inputs['MyArgument'] 
     23        MyInput = context.inputs['MyInput'] 
    2424         
    2525        context.setStatus(STATUS.STARTED, 'Job is now running', 0) 
     
    2929 
    3030        MyOutput = "MY OUTPUT IS GREAT" 
    31         context.outputs['ProcessSpecificContent'] = {"MyOutput": MyOutput}  
     31        context.outputs['ProcessSpecificContent'] = {"MyOutput": MyOutput, "TryAnArray": [1, 3, 567]}  
    3232 
    3333        MyFile = 'MyFile.txt' 
     
    3535 
    3636        fh = open(MyFilePath, 'w') 
    37         fh.write('You can write anything in MyFile.') 
     37        fh.write('You can write the input here if you like: %s.' % MyInput) 
    3838        fh.close() 
    3939 
Note: See TracChangeset for help on using the changeset viewer.