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

UserProcessor?: Check if imported roles do exist in the portal.

File:
1 edited

Legend:

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

    r11699 r12190  
    430430    ... uli,Uli Fouquet,Chief Developer,uli@abc.de,+49-234-567,[]
    431431    ... henrik,Henrik Bettermann,Admin,henrik@abc.de,+49-234-567,"['waeup.PortalManager', 'waeup.ImportManager']"
     432    ... anne,Anne Palina,,anne@abc.de,+49-234-567,"['waeup.Nonsense']"
    432433    ... """)
    433434
     
    619620    ...
    620621
     622Oh no, we forgot Anne Palina. Her user record was not imported because
     623she has a non-existent role:
     624
    621625    >>> sorted(os.listdir(dc_path))
    622     ['deleted', 'finished', 'logs', 'unfinished']
     626    ['deleted', 'finished', 'logs', 'unfinished', 'users_zope.mgr.create.pending.csv']
    623627
    624628    >>> os.listdir(dc_path + '/unfinished')
    625     []
     629    ['users_zope.mgr.csv']
     630
     631    >>> pending_file = dc_path + '/users_zope.mgr.create.pending.csv'
     632    >>> print open(pending_file).read()
     633    name,roles,title,public_name,phone,email,--ERRORS--
     634    anne,['waeup.Nonsense'],Anne Palina,,+49-234-567,anne@abc.de,roles: invalid role
     635
     636There are many finished-files:
    626637
    627638    >>> sorted(os.listdir(dc_path + '/finished'))
    628639    ['certificates_zope.mgr.create.finished.csv', ...,
    629     'users_zope.mgr.create.finished.csv', 'users_zope.mgr.csv']
     640    'users_zope.mgr.create.finished.csv']
    630641
    631642Processed (finished) Files
Note: See TracChangeset for help on using the changeset viewer.