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:
9d74f59
)
support 'authority' type
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 4 Aug 2009 19:49:20 +0000
(19:49 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 4 Aug 2009 19:49:20 +0000
(19:49 +0000)
sfa/methods/register.py
patch
|
blob
|
history
diff --git
a/sfa/methods/register.py
b/sfa/methods/register.py
index
5a7f30e
..
ee807b8
100644
(file)
--- a/
sfa/methods/register.py
+++ b/
sfa/methods/register.py
@@
-62,7
+62,7
@@
class register(Method):
if existing_records:
raise ExistingRecord(name)
- if
(type == "sa") or (type=="ma")
:
+ if
type in ["authority", "sa", "ma"]
:
# update the tree
if not self.api.auth.hierarchy.auth_exists(name):
self.api.auth.hierarchy.create_auth(name)