Changeset 9310 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 7 Oct 2012, 21:50:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/batchprocessing.txt
r9265 r9310 433 433 >>> open('users.csv', 'wb').write( 434 434 ... """name,title,public_name,email,phone,roles 435 ... uli,Uli Fouquet,Chief Developer,uli@abc.de,+49-234-567 436 ... henrik,Henrik Bettermann,Admin,henrik@abc.de,+49-234-567, ['waeup.PortalManager']435 ... uli,Uli Fouquet,Chief Developer,uli@abc.de,+49-234-567,[] 436 ... henrik,Henrik Bettermann,Admin,henrik@abc.de,+49-234-567,"['waeup.PortalManager', 'waeup.ImportManager']" 437 437 ... """) 438 438 … … 489 489 ...File:...users_zope.mgr.csv... 490 490 491 User henrik has got the global roles: 492 493 >>> henrik = getRootFolder()['app']['users']['henrik'] 494 >>> henrik.roles 495 ['waeup.PortalManager', 'waeup.ImportManager'] 496 491 497 Pending files 492 498 ============= … … 518 524 >>> filewidget.add_file(filecontents, 'text/plain', 'newfaculties.csv') 519 525 >>> browser.getControl(name='SUBMIT').click() 526 527 Since we now have a user with waeup.ImportManager role, an email has been sent: 528 >>> print browser.contents 529 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 530 ... 531 ...All import managers have been notified by email... 532 ... 520 533 521 534 Step 1: start batch processing:
Note: See TracChangeset for help on using the changeset viewer.