- user = {#'urn': record['geni_urn'],
- #'keys': record['keys'],
- #'email': record['email'], # needed for MyPLC
- 'person_id': record['record_id'],
- 'hrn': record['hrn'],
- 'type': record['type'],
- 'authority' : record['authority'],
- 'gid' : record['gid'],
- #'first_name': record['first_name'], # needed for MyPLC
- #'last_name': record['last_name'], # needed for MyPLC
- 'slice_record': slice_record, # needed for legacy refresh peer
- #'key_ids': record['key_ids'] # needed for legacy refresh peer
- }
- users.append(user)
- print>>sys.stderr, " \r\n \r\n \t CLIENT_HELPER.PY sfa_users_arg user %s",user
- return users
+ user = {'urn': record['reg-urn'],
+ 'keys': record['reg-keys'],
+ 'slice_record': slice_record,
+ }
+ # fill as much stuff as possible from planetlab or similar
+ # note that reg-email is not yet available
+ pl_fields = ['email', 'person_id',
+ 'first_name', 'last_name', 'key_ids']
+ # try to fill all these in
+ for field in pl_fields:
+ if field in record:
+ user[field] = record[field]
+ users.append(user)
+
+ return users
+