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 (from parent 1:
c62bdd7
)
fix bug in verify object belongs to me
author
Tony Mack
<tmack@cs.princeton.edu>
Sun, 27 Sep 2009 00:02:31 +0000
(
00:02
+0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Sun, 27 Sep 2009 00:02:31 +0000
(
00:02
+0000)
sfa/trust/auth.py
patch
|
blob
|
history
diff --git
a/sfa/trust/auth.py
b/sfa/trust/auth.py
index
f0574d9
..
2f807a7
100644
(file)
--- a/
sfa/trust/auth.py
+++ b/
sfa/trust/auth.py
@@
-96,6
+96,7
@@
class Auth:
@param auth_name human readable name of authority
"""
@param auth_name human readable name of authority
"""
+ # get auth info will throw an exception if the authority doesnt exist
self.get_auth_info(name)
self.get_auth_info(name)
@@
-108,9
+109,9
@@
class Auth:
@param name human readable name of object
"""
auth_name = self.get_authority(name)
@param name human readable name of object
"""
auth_name = self.get_authority(name)
- if not auth_name
or name == self.config.SFA_INTERFACE_HRN
:
- # the root authority belongs to the registry by default?
- # TODO: is this true?
+ if not auth_name:
+ auth_name = name
+ if name == self.config.SFA_INTERFACE_HRN:
return
self.verify_auth_belongs_to_me(auth_name)
return
self.verify_auth_belongs_to_me(auth_name)