git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e4e1d3
)
use record['name'] not record.get_name()
author
Tony Mack
<tmack@cs.princeton.edu>
Fri, 23 Oct 2009 02:37:09 +0000
(
02:37
+0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Fri, 23 Oct 2009 02:37:09 +0000
(
02:37
+0000)
sfa/methods/get_credential.py
patch
|
blob
|
history
diff --git
a/sfa/methods/get_credential.py
b/sfa/methods/get_credential.py
index
5b5922c
..
f127d47
100644
(file)
--- 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