Ignore:
Timestamp:
Dec 10, 2010 9:03:35 AM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
52b6ebc
Parents:
913dc7a (diff), 8d5394e (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.
Message:

Merge branch 'master' of tardis.deterlab.net:/var/local/git/fedd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_to_abac.py

    r8d5394e r66bb590  
    99
    1010from string import join
    11 from optparse import OptionParser
    1211
    13 from federation.util import abac_pem_type, abac_split_cert
     12from federation.util import abac_pem_type, abac_split_cert, file_expanding_opts
    1413
    15 class Parser(OptionParser):
     14class Parser(file_expanding_opts):
    1615    def __init__(self):
    17         OptionParser.__init__(self)
     16        file_expanding_opts.__init__(self)
    1817        self.add_option('--cert', dest='cert', default=None,
     18                action='callback', callback=self.expand_file, type='str',
    1919                help='my fedid as an X.509 certificate')
    2020        self.add_option('--key', dest='key', default=None,
     21                action='callback', callback=self.expand_file, type='str',
    2122                help='key for the certificate')
    2223        self.add_option('--dir', dest='dir', default=None,
     24                action='callback', callback=self.expand_file, type='str',
    2325                help='Output directory for credentials')
    2426        self.add_option('--make-dir', action='store_true', dest='make_dir',
Note: See TracChangeset for help on using the changeset viewer.