Changeset 3fa4328
- Timestamp:
- Dec 10, 2010 4:44:08 PM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- a96d946
- Parents:
- e65150a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/access_to_abac.py
re65150a r3fa4328 185 185 186 186 187 def parse_access(fn, mapper ):187 def parse_access(fn, mapper, delegation_link): 188 188 """ 189 189 Parse the access file, calling out to the mapper to parse specific … … 266 266 default=False, 267 267 help='Do not print credential to local attribute map') 268 self.add_option('--create_creds', action='store_true', 269 dest='create_creds', default=False, 270 help='create credentials for rules. Requires ' + \ 271 '--cert, --key, and --dir to be given.') 268 self.add_option('--no_create_creds', action='store_false', 269 dest='create_creds', default=True, 270 help='Do not create credentials for rules.') 272 271 self.add_option('--file', dest='file', default=None, 273 272 type='str', action='callback', callback=self.expand_file, … … 281 280 help='do not accept delegated attributes with the ' +\ 282 281 'acting_for linking role') 283 self.add_option('-- auth', action='store_true', dest='create_auth',284 default= False, help='create a full ABAC authorizer')282 self.add_option('--no_auth', action='store_false', dest='create_auth', 283 default=True, help='do not create a full ABAC authorizer') 285 284 self.add_option('--debug', action='store_true', dest='debug', 286 285 default=False, help='Just print actions') … … 407 406 for fn in args: 408 407 try: 409 creds, to_id = parse_access(fn, opts.mapper )408 creds, to_id = parse_access(fn, opts.mapper, delegation_link) 410 409 except parse_error, e: 411 410 print >> sys.stderr, "%s" % e
Note: See TracChangeset
for help on using the changeset viewer.