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/access.py

    redbc841 rf069052  
    1010from threading import *
    1111
    12 from fedd_services import *
    1312from util import *
    1413from allocate_project import allocate_project_local, allocate_project_remote
     
    4544    id_list_attrs = ("restricted",)
    4645
    47     proxy_RequestAccess= \
    48             service_caller('RequestAccess', 'getfeddPortType',
    49                     feddServiceLocator, RequestAccessRequestMessage,
    50                     'RequestAccessRequestBody')
    51 
    52     proxy_ReleaseAccess= \
    53             service_caller('ReleaseAccess', 'getfeddPortType',
    54                     feddServiceLocator, ReleaseAccessRequestMessage,
    55                     'ReleaseAccessRequestBody')
     46    proxy_RequestAccess= service_caller('RequestAccess')
     47    proxy_ReleaseAccess= service_caller('ReleaseAccess')
    5648
    5749    def __init__(self, config=None, auth=None):
     
    154146
    155147        self.soap_services = {\
    156             'RequestAccess': soap_handler(\
    157                 RequestAccessRequestMessage.typecode,\
    158                 self.RequestAccess, RequestAccessResponseMessage,\
    159                 "RequestAccessResponseBody"), \
    160             'ReleaseAccess': soap_handler(\
    161                 ReleaseAccessRequestMessage.typecode,\
    162                 self.ReleaseAccess, ReleaseAccessResponseMessage,\
    163                 "ReleaseAccessResponseBody")\
     148            'RequestAccess': soap_handler("RequestAccess", self.RequestAccess),
     149            'ReleaseAccess': soap_handler("ReleaseAccess", self.ReleaseAccess),
    164150            }
    165151        self.xmlrpc_services =  {\
    166             'RequestAccess': xmlrpc_handler(\
    167                 self.RequestAccess, "RequestAccessResponseBody"),\
    168             'ReleaseAccess': xmlrpc_handler(\
    169                 self.ReleaseAccess, "ReleaseAccessResponseBody")\
     152            'RequestAccess': xmlrpc_handler('RequestAccess',
     153                self.RequestAccess),
     154            'ReleaseAccess': xmlrpc_handler('ReleaseAccess',
     155                self.ReleaseAccess),
    170156            }
    171157
     
    518504
    519505        Build the dictionary description of the response and use
    520         fedd_utils.pack_soap to create the soap message.  NB that alloc_id is
    521         a fedd_services_types.IDType_Holder pulled from the incoming message.
    522         ap is the allocate project message returned from a remote project
    523         allocation (even if that allocation was done locally).
     506        fedd_utils.pack_soap to create the soap message.  ap is the allocate
     507        project message returned from a remote project allocation (even if that
     508        allocation was done locally).
    524509        """
    525510        # Because alloc_id is already a fedd_services_types.IDType_Holder,
Note: See TracChangeset for help on using the changeset viewer.