Ignore:
Timestamp:
Nov 30, 2008 5:38:16 PM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
05191a6
Parents:
edbc841
Message:

Two changes. Get allow_any_CA checking to work (i.e., self signed certs or
certs signed by an unknown entity) and put more of the ZSI-dependent stuff into
the hidden parts or remote_services. Now those routines will find all the
relevant classes and part names from the naming conventions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd/allocate_project.py

    redbc841 rf069052  
    88import tempfile
    99
    10 from fedd_services import *
    11 from fedd_internal_services import *
    1210from util import *
    1311from fedid import fedid
     
    9290        # Internal services are SOAP only
    9391        self.soap_services = {\
    94                 "AllocateProject": soap_handler(\
    95                 AllocateProjectRequestMessage.typecode,\
    96                 self.dynamic_project, AllocateProjectResponseMessage,\
    97                 "AllocateProjectResponseBody"),
    98                 "StaticProject": soap_handler(\
    99                 StaticProjectRequestMessage.typecode,\
    100                 self.static_project, StaticProjectResponseMessage,\
    101                 "StaticProjectResponseBody"),\
    102                 "ReleaseProject": soap_handler(\
    103                 ReleaseProjectRequestMessage.typecode,\
    104                 self.release_project, ReleaseProjectResponseMessage,\
    105                 "ReleaseProjectResponseBody")\
     92                "AllocateProject": soap_handler("AllocateProject",
     93                    self.dynamic_project),
     94                "StaticProject": soap_handler("StaticProject",
     95                    self.static_project),
     96                "ReleaseProject": soap_handler("ReleaseProject",
     97                    self.release_project),
    10698                }
    10799        self.xmlrpc_services = { }
     
    388380        """
    389381
    390         def __init__(self, url, cert_file, cert_pwd, trusted_certs,
    391                 method, req_name, req_alloc, resp_name):
    392             service_caller.__init__(self, method, 'getfeddInternalPortType',
    393                     feddInternalServiceLocator, req_alloc, req_name)
     382        def __init__(self, url, cert_file, cert_pwd, trusted_certs, method):
     383            service_caller.__init__(self, method)
    394384            self.url = url
    395385            self.cert_file = cert_file
     
    471461        # The specializations of the proxy functions
    472462        self.dynamic_project = self.proxy(self.url, self.cert_file,
    473                 self.cert_pwd, self.trusted_certs, "AllocateProject",
    474                 "AllocateProjectRequestBody", AllocateProjectRequestMessage,
    475                 "AllocateProjectResponseBody")
     463                self.cert_pwd, self.trusted_certs, "AllocateProject")
    476464        self.static_project = self.proxy(self.url, self.cert_file,
    477                 self.cert_pwd, self.trusted_certs, "StaticProject",
    478                 "StaticProjectRequestBody", StaticProjectRequestMessage,
    479                 "StaticProjectResponseBody")
     465                self.cert_pwd, self.trusted_certs, "StaticProject")
    480466        self.release_project = self.proxy(self.url, self.cert_file,
    481                 self.cert_pwd, self.trusted_certs, "ReleaseProject",
    482                 "ReleaseProjectRequestBody", ReleaseProjectRequestMessage,
    483                 "ReleaseProjectResponseBody")
    484 
     467                self.cert_pwd, self.trusted_certs, "ReleaseProject")
     468
Note: See TracChangeset for help on using the changeset viewer.