Changeset 2729e48
- Timestamp:
- Nov 29, 2008 11:31:03 PM (16 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- 2dd442f
- Parents:
- 0a20ef8
- Location:
- fedd
- Files:
-
- 1 added
- 3 edited
- 18 moved
Legend:
- Unmodified
- Added
- Removed
-
fedd/Makefile
r0a20ef8 r2729e48 1 1 2 GENERATED_MODS= fedd _services.pyfedd_internal_services.py \3 fedd _services_types.py2 GENERATED_MODS= fedd/fedd_services.py fedd/fedd_internal_services.py \ 3 fedd/fedd_services_types.py 4 4 WSDL_FILES= fedd.wsdl fedd_bindings.wsdl fedd_messages.wsdl fedd_types.xsd \ 5 5 fedd_internal.wsdl fedd_internal_bindings.wsdl \ … … 10 10 11 11 ${GENERATED_MODS}: ${WSDL_FILES} 12 /usr/local/bin/wsdl2py --file fedd.wsdl --complexType 12 /usr/local/bin/wsdl2py --file fedd.wsdl --complexType --output-dir=fedd 13 13 /usr/local/bin/wsdl2py --file fedd_internal.wsdl --complexType \ 14 --types=fedd_services_types 14 --types=fedd_services_types --output-dir=fedd 15 15 16 16 clean: 17 rm -f ${GENERATED_MODS} *.pyc17 rm -f ${GENERATED_MODS} fedd/*.pyc *.pyc -
fedd/fedd.py
r0a20ef8 r2729e48 1 1 #!/usr/local/bin/python 2 2 3 import sys3 import os,sys 4 4 5 5 from optparse import OptionParser 6 6 7 from fedd _server import fedd_server, fedd_xmlrpc_handler, fedd_soap_handler8 from fedd _config_parser import fedd_config_parser9 from fedd _util import fedd_ssl_context10 from fedd _deter_impl import new_feddservice7 from fedd.fedd_server import fedd_server, fedd_xmlrpc_handler, fedd_soap_handler 8 from fedd.fedd_config_parser import fedd_config_parser 9 from fedd.fedd_util import fedd_ssl_context 10 from fedd.fedd_deter_impl import new_feddservice 11 11 12 12 from threading import * … … 115 115 sys.exit("Error configuring fedd: %s" % str) 116 116 117 if impl.cert_file == None: 117 if impl.cert_file: 118 if not os.access(impl.cert_file, os.R_OK): 119 sys.exit("Cannot read certificate file: %s" % impl.cert_file) 120 else: 118 121 sys.exit("Must supply certificate file (probably in config)") 122 123 if impl.trusted_certs: 124 if not os.access(impl.trusted_certs, os.R_OK): 125 sys.exit("Cannot read trusted certificate file: %s" % \ 126 impl.trusted_certs) 119 127 120 128 # Create the SSL credentials … … 124 132 ctx = fedd_ssl_context(impl.cert_file, impl.trusted_certs, 125 133 password=impl.cert_pwd) 126 except SSL.SSLError, e:134 except Exception, e: 127 135 if str(e) != "bad decrypt" or impl.cert_pwd != None: 128 136 raise -
fedd/fedd_client.py
r0a20ef8 r2729e48 5 5 import pwd 6 6 7 from fedd _services import *8 from fedd _internal_services import *7 from fedd.fedd_services import * 8 from fedd.fedd_internal_services import * 9 9 10 10 from M2Crypto import SSL, X509 … … 19 19 import xmlrpclib 20 20 21 from fedd_util import fedd_ssl_context, pack_id, unpack_id 22 from fedid import fedid 23 from remote_service import service_caller 24 from service_error import * 21 from fedd.fedd_util import fedd_ssl_context, pack_id, unpack_id 22 from fedd.fedid import fedid 23 from fedd.remote_service import service_caller 24 from fedd.service_error import * 25 import fedd.parse_detail 25 26 26 27 from optparse import OptionParser, OptionValueError 27 28 28 import parse_detail29 29 30 30 # Turn off the matching of hostname to certificate ID
Note: See TracChangeset
for help on using the changeset viewer.