use record['name'] not record.get_name()
authorTony Mack <tmack@cs.princeton.edu>
Fri, 23 Oct 2009 02:37:09 +0000 (02:37 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Fri, 23 Oct 2009 02:37:09 +0000 (02:37 +0000)
sfa/methods/get_credential.py

index 5b5922c..f127d47 100644 (file)
@@ -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