Changeset 12191 for main/waeup.kofa/trunk/src
- Timestamp:
- 10 Dec 2014, 14:07:27 (10 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/batchprocessing.txt
r12190 r12191 509 509 ... FAC1,Faculty 1,faculty 510 510 ... FAC4,Faculty 4,school 511 ... FAC 5,Faculty 5,faculty 511 512 ... """) 512 513 … … 550 551 >>> browser.getControl('Perform import').click() 551 552 552 One linecould not be imported:553 Two lines could not be imported: 553 554 554 555 >>> print browser.contents 555 556 <!DOCTYPE html PUBLIC... 556 557 ... 557 ...Processing of 1rows failed...558 ...Processing of 2 rows failed... 558 559 ...Successfully processed 1 rows... 559 560 ... … … 566 567 title_prefix,code,title,--ERRORS-- 567 568 faculty,FAC1,Faculty 1,This object already exists. Skipping. 569 faculty,FAC 5,Faculty 5,code: must not contain spaces 568 570 569 571 >>> finished_file = dc_path + '/finished/newfaculties_zope.mgr.create.finished.csv' … … 586 588 >>> open(dc_path + '/newfaculties_zope.mgr.create.pending.csv', 'wb').write( 587 589 ... """title_prefix,--IGNORE--,code,title 588 ... faculty, FAC5,Faculty 5590 ... faculty,,FAC5,Faculty 5 589 591 ... """) 590 592 -
main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py
r11849 r12191 271 271 errs, inv_errs, conv_dict = converter.fromStringDict( 272 272 row, self.factory_name, mode=mode) 273 if 'code' in row and ' ' in row['code']: 274 errs.append(('code','must not contain spaces')) 273 275 return errs, inv_errs, conv_dict 274 276
Note: See TracChangeset for help on using the changeset viewer.