Changeset cf7bc45 for fedd/federation


Ignore:
Timestamp:
Apr 9, 2012 11:32:42 AM (12 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, master
Children:
cc6091c
Parents:
9be06f0
Message:

Tool to add credentials to an existing abac authorizer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/authorizer.py

    r9be06f0 rcf7bc45  
    311311            if data_list is None: data_list = []
    312312            for fn in file_list:
     313                # Try to parse file as a Creddy ID, so we can import PEM files
     314                try:
     315                    cid = Creddy.ID(fn)
     316                    data_list.append(cid.cert_chunk())
     317                    continue
     318                except:
     319                    # Not an ID
     320                    pass
    313321                try:
    314322                    f = open(fn, 'r')
Note: See TracChangeset for help on using the changeset viewer.