From 93cbfaa3b9a6d00a2aa0400899d6b77c06a7015c Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 23 Oct 2009 02:37:09 +0000 Subject: [PATCH] use record['name'] not record.get_name() --- sfa/methods/get_credential.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfa/methods/get_credential.py b/sfa/methods/get_credential.py index 5b5922cd..f127d47d 100644 --- a/sfa/methods/get_credential.py +++ b/sfa/methods/get_credential.py @@ -60,7 +60,7 @@ class get_credential(Method): rights = self.api.auth.determine_user_rights(self.api.auth.client_cred, record) if rights.is_empty(): - raise PermissionError(self.api.auth.client_cred.get_gid_object().get_hrn() + " has no rights to " + record.get_name()) + raise PermissionError(self.api.auth.client_cred.get_gid_object().get_hrn() + " has no rights to " + record['name']) # TODO: Check permission that self.client_cred can access the object -- 2.43.0