Changeset 3fa4328


Ignore:
Timestamp:
Dec 10, 2010 4:44:08 PM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
a96d946
Parents:
e65150a
Message:

More sane defaults.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/access_to_abac.py

    re65150a r3fa4328  
    185185
    186186
    187 def parse_access(fn, mapper):
     187def parse_access(fn, mapper, delegation_link):
    188188    """
    189189    Parse the access file, calling out to the mapper to parse specific
     
    266266                default=False,
    267267                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.')
    272271        self.add_option('--file', dest='file', default=None,
    273272                type='str', action='callback', callback=self.expand_file,
     
    281280                help='do not accept delegated attributes with the ' +\
    282281                        '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')
    285284        self.add_option('--debug', action='store_true', dest='debug',
    286285                default=False, help='Just print actions')
     
    407406    for fn in args:
    408407        try:
    409             creds, to_id = parse_access(fn, opts.mapper)
     408            creds, to_id = parse_access(fn, opts.mapper, delegation_link)
    410409        except parse_error, e:
    411410            print >> sys.stderr, "%s" % e
Note: See TracChangeset for help on using the changeset viewer.