X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Ftrust%2Fcredential.py;h=9ccf18fae3e7a08bb6fad7e3a277c79f6615beea;hb=97d09a321eff49c73c09f44a10d1ae0d7767d250;hp=8fd11e8e1ced110a6186eab996e93c34d006c5e7;hpb=57b6a99255d4a88be9c0f910f8524677e34ff4bc;p=sfa.git diff --git a/sfa/trust/credential.py b/sfa/trust/credential.py index 8fd11e8e..9ccf18fa 100644 --- a/sfa/trust/credential.py +++ b/sfa/trust/credential.py @@ -51,7 +51,7 @@ from sfa.trust.gid import GID from sfa.util.xrn import urn_to_hrn, hrn_authfor_hrn # 2 weeks, in seconds -DEFAULT_CREDENTIAL_LIFETIME = 86400 * 14 +DEFAULT_CREDENTIAL_LIFETIME = 86400 * 31 # TODO: @@ -278,6 +278,7 @@ class Credential(object): self.decode() return self.gidObject.get_printable_subject() + # sounds like this should be __repr__ instead ?? def get_summary_tostring(self): if not self.gidObject: self.decode() @@ -363,8 +364,6 @@ class Credential(object): if not self.gidObject: self.decode() return self.gidObject - - ## # Expiration: an absolute UTC time of expiration (as either an int or string or datetime) @@ -403,8 +402,7 @@ class Credential(object): if isinstance(privs, str): self.privileges = Rights(string = privs) else: - self.privileges = privs - + self.privileges = privs ## # return the privileges as a Rights object