From: Tony Mack Date: Fri, 23 Oct 2009 02:37:09 +0000 (+0000) Subject: use record['name'] not record.get_name() X-Git-Tag: sfa-0.9-6~145 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=93cbfaa3b9a6d00a2aa0400899d6b77c06a7015c;hp=3e4e1d382c5194fd14839f5213e382164042b273;p=sfa.git use record['name'] not record.get_name() --- 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