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/lib/ui/proc_config.py

    r6923 r6976  
    127127        return resp 
    128128 
    129     def renderProcSubmissionForm(self, proc): 
     129    def renderProcSubmissionForm(self, proc, args): 
    130130        """         
    131131        Renders a submission form for a proc. 
     132        Populates items with args dictionary if they exist. 
    132133        """ 
    133134        pcc = ProcConfigConvertor() 
     
    197198                    instruction += " Please insert a date/time field in the format <kbd><B>YYYY-MM-DDThh:mm:ss</B></kbd> such as <kbd>2009-01-01T00:00:00</kbd>." 
    198199                else: 
     200                    if args.has_key(name): 
     201                        default = args[name] 
     202 
    199203                    instruction += " Please insert a value of type: %s." % tp 
    200204 
    201                 resp += fm.renderTextInput(name, dtype=tp, optional=opt, default=default, multiple=multiple) 
     205                resp += fm.renderTextInput(name, dtype = tp, optional = opt, default = default, multiple = multiple) 
    202206            
    203207            elif tp == "filepath": 
Note: See TracChangeset for help on using the changeset viewer.