Compare commits

...

1 commit

Author SHA1 Message Date
Robin Champenois
914e405762 Ajout de la normalisation des clippers 2018-04-18 22:31:24 +02:00

View file

@ -21,6 +21,12 @@ class ClipperProvider(CASProvider):
uid, extra = data uid, extra = data
return '{}@clipper.ens.fr'.format(uid.strip().lower()) return '{}@clipper.ens.fr'.format(uid.strip().lower())
def extract_uid(self, data):
# Normalize UID
uid, _ = data
uid = uid.lower().strip()
return uid
def extract_common_fields(self, data): def extract_common_fields(self, data):
def get_names(clipper): def get_names(clipper):
assert clipper.isalnum() assert clipper.isalnum()