From: Nicolas Turro Date: Wed, 18 Apr 2012 11:59:40 +0000 (+0200) Subject: Verify user also work with an urn now (worked only with hrn before). NT X-Git-Tag: sfa-2.1-24~3^2~186 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=b83d30bbe09c91c949b0c92510c85917f4afd13c Verify user also work with an urn now (worked only with hrn before). NT --- diff --git a/sfa/senslab/slabslices.py b/sfa/senslab/slabslices.py index d372eea2..40faae33 100644 --- a/sfa/senslab/slabslices.py +++ b/sfa/senslab/slabslices.py @@ -411,6 +411,10 @@ class SlabSlices: users_dict = {} for user in users: + + if 'urn' in user and (not 'hrn' in user ) : + user['hrn'],user['type'] = urn_to_hrn(user['urn']) + if 'person_id' in user and 'hrn' in user: users_by_id[user['person_id']] = user users_dict[user['person_id']] = {'person_id':user['person_id'], 'hrn':user['hrn']}