Changeset 1794 for trunk/grails-app
- Timestamp:
- Apr 28, 2011, 3:33:45 PM (12 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/StudyXMLController.groovy
r1700 r1794 101 101 study.save() 102 102 } catch (Exception e) { 103 println e103 //println e 104 104 } 105 105 -
trunk/grails-app/controllers/dbnp/authentication/RegisterController.groovy
r1712 r1794 58 58 def registrationCode = new RegistrationCode(username: user.username, expiryDate: new Date() + 1 ) 59 59 if( !registrationCode.save() ) { 60 println registrationCode.errors60 //println registrationCode.errors 61 61 flash.userError = "Your password could not be reset because of database errors. Please contact the system administrator." 62 62 return -
trunk/grails-app/controllers/dbnp/exporter/ExporterController.groovy
r1729 r1794 131 131 def attributes_list = ["SubjectID","DataFile","HybName","SampleName","ArrayType","Label","StudyTitle","Array_ID", 132 132 "Species"] 133 println studyInstance.samples.size()134 println "StudyInstance :" + studyInstance133 //println studyInstance.samples.size() 134 //println "StudyInstance :" + studyInstance 135 135 136 136 // The first row contains the attributes names … … 164 164 } 165 165 catch (Exception e){ 166 println "Error adding properties"166 //println "Error adding properties" 167 167 } 168 168 } -
trunk/grails-app/controllers/dbnp/importer/ImporterController.groovy
r1676 r1794 475 475 else { 476 476 mc.errors.allErrors.each { 477 println it477 //println it 478 478 } 479 479 } … … 490 490 else { 491 491 im.errors.allErrors.each { 492 println it492 //println it 493 493 } 494 494 } -
trunk/grails-app/controllers/dbnp/studycapturing/PersonAffiliationController.groovy
r1430 r1794 52 52 */ 53 53 def afterInterceptor = { model, modelAndView -> 54 println( params );55 56 54 if ( params['dialog'] ) { 57 55 model.layout = 'dialog'; -
trunk/grails-app/controllers/dbnp/studycapturing/PersonController.groovy
r1430 r1794 53 53 */ 54 54 def afterInterceptor = { model, modelAndView -> 55 println( params );56 57 55 if ( params['dialog'] ) { 58 56 model.layout = 'dialog'; -
trunk/grails-app/controllers/dbnp/studycapturing/PersonRoleController.groovy
r1430 r1794 52 52 */ 53 53 def afterInterceptor = { model, modelAndView -> 54 println( params );55 56 54 if ( params['dialog'] ) { 57 55 model.layout = 'dialog'; -
trunk/grails-app/controllers/dbnp/studycapturing/PublicationController.groovy
r1681 r1794 45 45 // validate term 46 46 if (publication.validate()) { 47 println "Publication validated correctly"48 47 publication.save() 49 48 message = "Publication added to the system" 50 49 } else { 51 println "Publication validation failed"52 println "errors:"53 publication.errors.getAllErrors().each() {54 println it55 }56 50 errors = publications.errors.getAllErrors().join( ', ' ); 57 51 message = "Publication addition failed" -
trunk/grails-app/controllers/dbnp/studycapturing/SimpleWizardController.groovy
r1686 r1794 183 183 } 184 184 185 println flow.sampleForm.template185 //println flow.sampleForm.template 186 186 }.to "columns" 187 187 on("refresh") { … … 293 293 if( flow.study.assays ) { 294 294 flow.assay = flow.study.assays[ 0 ] 295 println "Existing assay: " + flow.assay295 //println "Existing assay: " + flow.assay 296 296 } else { 297 297 flow.assay = new Assay( parent: flow.study ); … … 776 776 777 777 // Import the workbook and store the table with entity records and store the failed cells 778 println "Importing samples for study " + study + " (" + study.id + ")";778 //println "Importing samples for study " + study + " (" + study.id + ")"; 779 779 780 780 def importedfile = fileService.get( flow.excel.filename ) … … 846 846 entity.parentEventGroup.name = "Group " + entity.name 847 847 while( !entity.parentEventGroup.validate() ) { 848 entity.parentEventGroup.getErrors().each { println it }848 //entity.parentEventGroup.getErrors().each { println it } 849 849 entity.parentEventGroup.name += "" + Math.floor( Math.random() * 100 ) 850 850 } -
trunk/grails-app/controllers/dbnp/studycapturing/StudyController.groovy
r1790 r1794 61 61 ids.each { long_ids.add( Long.parseLong( it ) ) } 62 62 63 println( long_ids )63 //println( long_ids ) 64 64 65 65 def startTime = System.currentTimeMillis() -
trunk/grails-app/domain/dbnp/studycapturing/Sample.groovy
r1792 r1794 156 156 this.sampleUUID = UUID.randomUUID().toString(); 157 157 if( !this.save(flush:true) ) { 158 println "Couldn't save sample UUID: " + this.getErrors();158 //println "Couldn't save sample UUID: " + this.getErrors(); 159 159 } 160 160 } -
trunk/grails-app/domain/dbnp/studycapturing/Study.groovy
r1787 r1794 60 60 // tested by SampleTests.testStudyPublish 61 61 } 62 63 // see org.dbnp.gdt.FuzzyStringMatchController and Service 64 static fuzzyStringMatchable = [ 65 "title", 66 "code" 67 ] 62 68 63 69 static mapping = { -
trunk/grails-app/views/simpleWizard/_javascripts.gsp
r1581 r1794 22 22 <script type="text/javascript" src="${resource(dir: 'js', file: 'jquery.ui.autocomplete.html.js', plugin: 'gdt')}"></script> 23 23 24 <% /* fuzzy matching */ %> 25 <script type="text/javascript" src="${resource(dir: 'js', file: 'fuzzyStringMatch.js', plugin: 'gdt')}"></script> 26 24 27 <% /* Specific simplewizard stuff */ %> 25 28 <script type="text/javascript" src="${resource(dir: 'js', file: 'simpleWizard.js' )}"></script> -
trunk/grails-app/views/studyWizard/index.gsp
r1467 r1794 18 18 <link rel="stylesheet" href="${resource(dir: 'css', file: 'studywizard.css')}"/> 19 19 <link rel="stylesheet" href="${resource(dir: 'css', file: 'templates.css')}"/> 20 21 20 <script type="text/javascript" src="${resource(dir: 'js', file: 'studywizard.js')}"></script> 22 21 <script type="text/javascript" src="${resource(dir: 'js', file: 'tooltips.js', plugin: 'gdt')}"></script> 23 24 22 <link rel="stylesheet" href="${resource(dir: 'css', file: 'table-editor.css', plugin: 'gdt')}"/> 25 23 <script type="text/javascript" src="${resource(dir: 'js', file: 'table-editor.js', plugin: 'gdt')}"></script> 26 27 28 24 <script type="text/javascript" src="${resource(dir: 'js', file: 'fuzzyStringMatch.js', plugin: 'gdt')}"></script> 29 25 <script type="text/javascript" src="${resource(dir: 'js', file: 'jquery.qtip-1.0.0-rc3.js', plugin: 'gdt')}"></script> 30 26 <script type="text/javascript" src="${resource(dir: 'js', file: 'ontology-chooser.js', plugin: 'gdt')}"></script>
Note: See TracChangeset
for help on using the changeset viewer.