Changeset 0a49bd7 for fedd/init_abac_authorizer.py
- Timestamp:
- Jan 15, 2011 5:52:15 PM (13 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- aaf7f41
- Parents:
- ac15159 (diff), 944b746 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Ted Faber <faber@…> (01/15/11 17:51:40)
- git-committer:
- Ted Faber <faber@…> (01/15/11 17:52:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/init_abac_authorizer.py
rac15159 r0a49bd7 4 4 import os, os.path 5 5 6 from optparse import OptionParser6 from federation.util import file_expanding_opts 7 7 from federation.authorizer import abac_authorizer 8 8 9 class Parser( OptionParser):9 class Parser(file_expanding_opts): 10 10 def __init__(self): 11 OptionParser.__init__(self, usage='%prog [options]') 12 self.add_option('--cert', dest='cert', help='Identity certificate') 13 self.add_option('--key', dest='key', help='Identity key') 11 file_expanding_opts.__init__(self, usage='%prog [options]') 12 self.add_option('--cert', dest='cert', 13 action='callback', callback=self.expand_file, type='str', 14 help='Identity certificate') 15 self.add_option('--key', dest='key', 16 action='callback', callback=self.expand_file, type='str', 17 help='Identity key') 14 18 self.add_option('--policy', dest='policy', 19 action='callback', callback=self.expand_file, type='str', 15 20 help='ABAC policy certificates') 16 self.add_option('--dir', dest='out_dir', help='directory to save into') 21 self.add_option('--dir', dest='out_dir', 22 action='callback', callback=self.expand_file, type='str', 23 help='directory to save into') 17 24 18 25 parser = Parser()
Note: See TracChangeset
for help on using the changeset viewer.