git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
support for users with a period in their names
[sfa.git]
/
plc
/
import.py
diff --git
a/plc/import.py
b/plc/import.py
index
122c76f
..
ce43c44
100644
(file)
--- a/
plc/import.py
+++ b/
plc/import.py
@@
-104,10
+104,16
@@
def get_pl_pubkey(key_id):
else:
return None
else:
return None
-def
import_perso
n(parent_hrn, person):
+def
person_to_hr
n(parent_hrn, person):
personname = person['last_name'] + "_" + person['first_name']
personname = person['last_name'] + "_" + person['first_name']
-
+ personname = personname.replace(" ", "_")
+ personname = personname.replace(".", "_")
hrn = parent_hrn + "." + personname
hrn = parent_hrn + "." + personname
+ return hrn
+
+def import_person(parent_hrn, person):
+ hrn = person_to_hrn(parent_hrn, person)
+
report.trace("Import: importing person " + hrn)
table = get_auth_table(parent_hrn)
report.trace("Import: importing person " + hrn)
table = get_auth_table(parent_hrn)