Ignore:
Timestamp:
10 Dec 2014, 11:12:42 (10 years ago)
Author:
Henrik Bettermann
Message:

We need to check if imported roles do exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/browser/batchprocessing.txt

    r11954 r12189  
    147147    ... isouaba,Issoufou Abba Moussa,Chief Developer,isouaba@abc.de,+49-234-567,[]
    148148    ... henrik,Henrik Bettermann,Admin,henrik@abc.de,+49-234-567,"['waeup.PortalManager', 'waeup.ImportManager']"
     149    ... anne,Anne Palina,,anne@abc.de,+49-234-567,"['waeup.Nonsense']"
    149150    ... """)
    150151
     
    188189    >>> browser.getControl('Perform import').click()
    189190
    190 One line could not be imported:
     191Two lines could not be imported:
    191192
    192193    >>> print browser.contents
    193194    <!DOCTYPE html PUBLIC...
    194195    ...
    195     ...Processing of 1 rows failed...
     196    ...Processing of 2 rows failed...
    196197    ...Successfully processed 1 rows...
    197198    ...
     
    204205    name,roles,title,public_name,phone,email,--ERRORS--
    205206    henrik,"['waeup.PortalManager', 'waeup.ImportManager']",Henrik Bettermann,Admin,+49-234-567,henrik@abc.de,This object already exists. Skipping.
     207    anne,['waeup.Nonsense'],Anne Palina,,+49-234-567,anne@abc.de,roles: invalid role
    206208
    207209    >>> finished_file = dc_path + '/finished/newusers_zope.mgr.create.finished.csv'
     
    218220-----------------------
    219221
    220 We 'edit' the pending file (setting code to ``FAC5`` and title
    221 appropriately, and removing the --ERROR-- column) and finish the
    222 import this way:
     222We 'edit' the pending file by removing anne and replacing henrik by gbenga
     223and finish the import this way:
    223224
    224225    >>> open(dc_path + '/newusers_zope.mgr.create.pending.csv', 'wb').write(
Note: See TracChangeset for help on using the changeset viewer.