Changeset 414 for trunk/grails-app/services
- Timestamp:
- Feb 24, 2010, 4:01:05 PM (15 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/AssetCsvService.groovy
r409 r414 7 7 * Requires the opencsv jar to be available which is included in the grails-export plugin. 8 8 */ 9 class CsvService {9 class AssetCsvService { 10 10 11 11 boolean transactional = false … … 36 36 37 37 if(!multiPartFile || multiPartFile.isEmpty()) 38 return fail(code: " asset.tree.import.file.not.supplied")38 return fail(code: "default.file.not.supplied") 39 39 40 40 if (multiPartFile.getSize() > fileMaxSize) 41 return fail(code: " asset.tree.import.file.over.max.size", args: [fileMaxSize/kByteMultiplier, "kB"])41 return fail(code: "default.file.over.max.size", args: [fileMaxSize/kByteMultiplier, "kB"]) 42 42 43 43 def columnIndex = 0 … … 55 55 log.error "Required: " + templateHeaderLine1.toString() 56 56 log.error "Supplied: " + line.toString() 57 return fail(code: " asset.tree.import.no.header")57 return fail(code: "default.file.no.header") 58 58 } 59 59 … … 67 67 log.error "Required: " + templateHeaderLine2.toString() 68 68 log.error "Supplied: " + line.toString() 69 return fail(code: " asset.tree.import.no.header")69 return fail(code: "default.file.no.header") 70 70 } 71 71
Note: See TracChangeset
for help on using the changeset viewer.