Ignore:
Timestamp:
Oct 9, 2008 2:08:28 PM (16 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:
0b466d1
Parents:
11a08b0
Message:

clean up and add some docs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_allocate_project.py

    r11a08b0 r0ea11af  
    2525
    2626
     27# Configure loggers to dump to /dev/null which avoids errors if calling classes
     28# don't configure them.
    2729class nullHandler(logging.Handler):
    2830    def emit(self, record): pass
     
    3436
    3537class fedd_allocate_project_local:
     38    """
     39    Allocate projects on this machine in response to an access request.
     40    """
    3641    def __init__(self, dp=False, url=None, certs=None):
    3742        """
     
    4550        self.grantnodetype = '/usr/testbed/sbin/grantnodetype'
    4651        self.log = logging.getLogger("fedd.allocate.local")
     52
     53        # Internal services are SOAP only
     54        self.soap_services = {\
     55                "AllocateProject": make_soap_handler(\
     56                AllocateProjectRequestMessage.typecode,\
     57                self.dynamic_project, AllocateProjectResponseMessage,\
     58                "AllocateProjectResponseBody")\
     59                }
     60        self.xmlrpc_services = { }
    4761
    4862    def random_string(self, s, n=3):
     
    195209
    196210class fedd_allocate_project_remote:
     211    """
     212    Allocate projects on a remote machine using the internal SOAP interface
     213    """
    197214    def __init__(self, dp=False, url=None, certs=None):
    198215        """
     
    208225            self.cert_file, self.trusted_certs, self.cert_pwd = \
    209226                    (None, None, None)
    210 
     227        self.soap_services = { }
     228        self.xmlrpc_services = { }
     229       
    211230    def dynamic_project(self, req, fedid=None):
    212231        """
Note: See TracChangeset for help on using the changeset viewer.