From: Tony Mack Date: Fri, 26 Mar 2010 21:20:08 +0000 (+0000) Subject: replace + symbolm in email address with _ X-Git-Tag: sfa-0.9-11~40 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=27ee272860ec07c252606e4bc0e642688500e8e3 replace + symbolm in email address with _ --- diff --git a/sfa/util/namespace.py b/sfa/util/namespace.py index cc140d5a..e3a7536f 100644 --- a/sfa/util/namespace.py +++ b/sfa/util/namespace.py @@ -45,7 +45,7 @@ def slicename_to_hrn(auth_hrn, slicename): def email_to_hrn(auth_hrn, email): parts = email.split("@") username = parts[0] - username = username.replace(".", "_") + username = username.replace(".", "_").replace("+", "_") person_hrn = ".".join([auth_hrn, username]) return person_hrn