git://git.onelab.eu
/
sfa.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added redeemticket
[sfa.git]
/
registry
/
createAuthority.py
1
import getopt
2
import sys
3
4
from hierarchy import *
5
6
hrn = None
7
8
def process_options():
9
global hrn
10
11
(options, args) = getopt.getopt(sys.argv[1:], '', [])
12
for opt in options:
13
name = opt[0]
14
val = opt[1]
15
16
if not args:
17
print "no hrn specified"
18
sys.exit(-1)
19
20
hrn = args[0]
21
22
23
def main():
24
process_options()
25
26
h = Hierarchy()
27
h.create_auth(hrn)
28
29
if __name__ == "__main__":
30
main()