Changeset 424


Ignore:
Timestamp:
May 17, 2010, 5:11:29 PM (14 years ago)
Author:
keesvb
Message:

updated to grails 1.3.1, changed PPSH Gender choice in Bootstrap to be randomly chosen

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/application.properties

    r419 r424  
    11#Grails Metadata file
    2 #Mon May 17 12:04:52 CEST 2010
    3 app.grails.version=1.3.0
     2#Mon May 17 17:23:37 CEST 2010
     3app.grails.version=1.3.1
    44app.name=gscf
    55app.servlet.version=2.4
     
    77plugins.crypto=2.0
    88plugins.db-util=0.4
    9 plugins.hibernate=1.3.0
     9plugins.hibernate=1.3.1
    1010plugins.jquery=1.4.1.1
    1111plugins.mail=0.9
     
    1414plugins.searchable=0.5.5
    1515plugins.shiro=1.0.1
    16 plugins.tomcat=1.3.0
    17 plugins.webflow=1.3.0
     16plugins.tomcat=1.3.1
     17plugins.webflow=1.3.1
  • trunk/grails-app/conf/BootStrap.groovy

    r423 r424  
    599599                                              species: humanTerm,
    600600                                              template: humanTemplate)
    601                                         //.setFieldValue("Gender", ( (boolean) (y / 2) ? "Male" : "Female") )
     601                                        .setFieldValue("Gender", (Math.random() > 0.5) ? "Male" : "Female")
    602602                                        .setFieldValue("DOB", new java.text.SimpleDateFormat("dd-mm-yy").parse("01-02-19" + (10 + (int) (Math.random() * 80))))
    603603                                        .setFieldValue("Age (years)", 30)
Note: See TracChangeset for help on using the changeset viewer.