comparison insect_phenology_model.xml @ 114:3bbb4ff3b5f2 draft

Uploaded
author greg
date Tue, 29 May 2018 13:21:24 -0400
parents bb61458966df
children 3b59d42b80e8
comparison
equal deleted inserted replaced
113:bb61458966df 114:3bbb4ff3b5f2
103 <option value="yes">Yes</option> 103 <option value="yes">Yes</option>
104 </param> 104 </param>
105 <when value="no"/> 105 <when value="no"/>
106 <when value="yes"> 106 <when value="yes">
107 <param name="start_date" type="text" value="" label="Start date" help="Format must be yyyy-mm-dd"> 107 <param name="start_date" type="text" value="" label="Start date" help="Format must be yyyy-mm-dd">
108 <validator type="expression" message="Date must have the format yyyy-mm-dd">value == datetime.strptime(value, "%Y-%m-%d").strftime('%Y-%m-%d')</validator> 108 <validator type="expression" message="Date must have the format yyyy-mm-dd">len(value.split("-")[0])==4 and isinstance(value.split("-")[0], int) len(value.split("-")[1])==2 and isinstance(value.split("-")[1], int) and len(value.split("-")[2])==2 and isinstance(value.split("-")[2], int)</validator>
109 </param> 109 </param>
110 <param name="end_date" type="text" value="" label="End date" help="Format must be yyyy-mm-dd"> 110 <param name="end_date" type="text" value="" label="End date" help="Format must be yyyy-mm-dd">
111 <validator type="expression" message="Date must have the format yyyy-mm-dd">value == datetime.strptime(value, "%Y-%m-%d").strftime('%Y-%m-%d')</validator> 111 <validator type="expression" message="Date must have the format yyyy-mm-dd">len(value.split("-")[0])==4 and isinstance(value.split("-")[0], int) len(value.split("-")[1])==2 and isinstance(value.split("-")[1], int) and len(value.split("-")[2])==2 and isinstance(value.split("-")[2], int)</validator>
112 </param> 112 </param>
113 </when> 113 </when>
114 </conditional> 114 </conditional>
115 <param name="plot_generations_separately" type="select" label="Plot generations separately?"> 115 <param name="plot_generations_separately" type="select" label="Plot generations separately?">
116 <option value="yes" selected="True">Yes</option> 116 <option value="yes" selected="True">Yes</option>