fixing email and added a necessary import to credential
authorJosh Karlin <jkarlin@bbn.com>
Wed, 6 Oct 2010 20:44:13 +0000 (16:44 -0400)
committerJosh Karlin <jkarlin@bbn.com>
Wed, 6 Oct 2010 20:44:13 +0000 (16:44 -0400)
sfa/managers/aggregate_manager_pl.py
sfa/trust/credential.py

index ae4215a..8a30f1c 100644 (file)
@@ -70,7 +70,7 @@ def __get_registry_objects(slice_xrn, creds, users):
         for user in users:
             user['key_ids'] = []
             hrn, _ = urn_to_hrn(user['urn'])
-            user['email'] = hrn + "@geni.net"
+            user['email'] = hrn_to_pl_slicename(hrn) + "@geni.net"
             user['first_name'] = hrn
             user['last_name'] = hrn
             reg_objects['users'][user['email']] = user
index ebecedb..4971cdd 100644 (file)
@@ -41,6 +41,7 @@ from sfa.trust.certificate import Keypair
 from sfa.trust.credential_legacy import CredentialLegacy
 from sfa.trust.rights import Right, Rights
 from sfa.trust.gid import GID
+from sfa.util.namespace import *
 
 # Two years, in seconds 
 DEFAULT_CREDENTIAL_LIFETIME = 60 * 60 * 24 * 365 * 2