Changeset 235 for trunk/grails-app/conf
- Timestamp:
- Mar 5, 2010, 12:32:58 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrap.groovy
r232 r235 83 83 ).with { if (!validate()) { errors.each { println it} } else save()} 84 84 85 86 // ParameterStringListItems 87 def oil10= new ParameterStringListItem( 88 name: '10% fat (palm oil)' 89 ).with { if (!validate()) { errors.each { println it} } else save()} 90 def oil45= new ParameterStringListItem( 91 name: '45% fat (palm oil)' 92 ).with { if (!validate()) { errors.each { println it} } else save()} 93 def vehicle= new ParameterStringListItem( 94 name: 'Vehicle' 95 ).with { if (!validate()) { errors.each { println it} } else save()} 96 def leptin= new ParameterStringListItem( 97 name: 'Leptin' 98 ).with { if (!validate()) { errors.each { println it} } else save()} 99 100 85 101 dietProtocol 86 102 .addToParameters(new ProtocolParameter( 87 103 name: 'Diet', 88 104 type: ProtocolParameterType.STRINGLIST, 89 listEntries: [ '10% fat (palm oil)','45% fat (palm oil)']))105 listEntries: [oil10,oil45])) 90 106 .save() 91 107 … … 94 110 name: 'Compound', 95 111 type: ProtocolParameterType.STRINGLIST, 96 listEntries: [ 'Vehicle','Leptin']))112 listEntries: [vehicle,leptin])) 97 113 .save() 98 114 … … 102 118 type: ProtocolParameterType.STRING)) 103 119 .save() 120 104 121 105 122 // sampling event protocols
Note: See TracChangeset
for help on using the changeset viewer.