Changeset 347


Ignore:
Timestamp:
Apr 19, 2010, 10:36:25 AM (9 years ago)
Author:
duh
Message:
  • refactored bootstrap, commented out everything, put academic study template on top
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BootStrap.groovy

    r346 r347  
    2525                if (Study.count() == 0) {
    2626                        printf("development bootstrapping....\n\n");
    27  /*
     27
     28                        // adding the academic
     29                        println "Adding academic study template..."
     30                        def studyTemplate = new Template(
     31                                name: 'Academic study', entity: dbnp.studycapturing.Study)
     32                                .addToFields(new TemplateField(name: 'Consortium',type: TemplateFieldType.STRING))
     33                                .addToFields(new TemplateField(name: 'Cohort name',type: TemplateFieldType.STRING))
     34                                .addToFields(new TemplateField(name: 'Time zone',type: TemplateFieldType.STRING))
     35                                .addToFields(new TemplateField(name: 'Responsible scientist',type: TemplateFieldType.STRING))
     36                                .addToFields(new TemplateField(name: 'Lab code',type: TemplateFieldType.STRING))
     37                                .addToFields(new TemplateField(name: 'Institute',type: TemplateFieldType.STRING))
     38                        .with { if (!validate()) { errors.each { println it} } else save()}
     39
     40
     41
     42 /*   COMMENTED OUT BECAUSE IT BREAKS EVERYTHING AFTER REFACTORING THE DATAMODEL
     43
    2844                        // ontologies
    2945                        def speciesOntology = new Ontology(
Note: See TracChangeset for help on using the changeset viewer.