Ignore:
Timestamp:
Nov 23, 2010 6:42:19 PM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
25f66c3
Parents:
353db8c
Message:

Checkpoint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/authorizer.py

    r353db8c r6e63513  
    192192    bad_name = authorizer_base.bad_name
    193193    attribute_error = authorizer_base.attribute_error
    194     class no_file(RuntimeError): pass
    195     class bad_cert(RuntimeError): pass
     194    class no_file_error(RuntimeError): pass
     195    class bad_cert_error(RuntimeError): pass
    196196
    197197    def __init__(self, certs=None, me=None, key=None, load=None, save=None):
     
    203203        # If the me parameter is a combination certificate, split it into the
    204204        # abac_authorizer save directory (if any) for use with creddy.
    205         if abac_pem_type(self.me) == 'both':
     205        if self.me is not None and abac_pem_type(self.me) == 'both':
    206206            if self.save_dir:
    207207                self.key, self.me = abac_split_cert(self.me,
     
    209209                        certfile = "%s/cert.pem" % self.save_dir)
    210210            else:
    211                 raise abac_authorizer.bad_cert("Combination certificate " + \
    212                         "and nowhere to split it");
     211                raise abac_authorizer.bad_cert_error("Combination " + \
     212                        "certificate and nowhere to split it");
    213213        else:
    214214            self.key = key
Note: See TracChangeset for help on using the changeset viewer.