Changeset 6e63513 for fedd/federation/authorizer.py
- Timestamp:
- Nov 23, 2010 6:42:19 PM (13 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 25f66c3
- Parents:
- 353db8c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/authorizer.py
r353db8c r6e63513 192 192 bad_name = authorizer_base.bad_name 193 193 attribute_error = authorizer_base.attribute_error 194 class no_file (RuntimeError): pass195 class bad_cert (RuntimeError): pass194 class no_file_error(RuntimeError): pass 195 class bad_cert_error(RuntimeError): pass 196 196 197 197 def __init__(self, certs=None, me=None, key=None, load=None, save=None): … … 203 203 # If the me parameter is a combination certificate, split it into the 204 204 # 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': 206 206 if self.save_dir: 207 207 self.key, self.me = abac_split_cert(self.me, … … 209 209 certfile = "%s/cert.pem" % self.save_dir) 210 210 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"); 213 213 else: 214 214 self.key = key
Note: See TracChangeset
for help on using the changeset viewer.