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

lots of new bits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.