Changeset 62f3dd9 for fedd/cert_to_fedid.py
- Timestamp:
- Dec 10, 2010 9:00:16 AM (13 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 913dc7a
- Parents:
- fbee30a
- git-author:
- Ted Faber <faber@…> (12/09/10 11:41:45)
- git-committer:
- Ted Faber <faber@…> (12/10/10 09:00:16)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/cert_to_fedid.py
rfbee30a r62f3dd9 3 3 import sys, os 4 4 import subprocess, tempfile 5 import os.path 5 6 6 7 from string import join 7 from optparse import OptionParser 8 from federation.util import abac_pem_type, abac_split_cert 8 from federation.util import abac_pem_type, abac_split_cert, file_expanding_opts 9 9 10 class Parser( OptionParser):10 class Parser(file_expanding_opts): 11 11 def __init__(self): 12 OptionParser.__init__(self, usage='%prog [options]')12 file_expanding_opts.__init__(self, usage='%prog [options]') 13 13 self.add_option('--out', dest='out', help='destination file', 14 action='callback', callback=self.expand_file, type='str', 14 15 default='./cert.pem') 15 16 self.add_option('--debug', dest='debug', action='store_true',
Note: See TracChangeset
for help on using the changeset viewer.