Changeset 1813


Ignore:
Timestamp:
05/12/06 11:09:46 (13 years ago)
Author:
spascoe
Message:

Changes to configuration. You can now test DXWSInterface by putting
server/dxs/configs/server.conf in your ndg.conf. Change the BASEDIR
definition to point to .../server/dxs and startSession('rod', 'rod1')
should work.

Location:
TI03-DataExtractor/branches/repackaging/server
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TI03-DataExtractor/branches/repackaging/server/dxs/configs/server.conf

    r1776 r1813  
    113113# Set this to 1 if you want to be notified by e-mail when an error has 
    114114# occurred. 
    115 ADMIN_NOTIFICATION=1 
     115ADMIN_NOTIFICATION=0 
    116116 
    117117# SOAP_SERVER_PORT: 
     
    123123# "/usr/local/dxs" is recommended but you can change it as  
    124124# you wish. 
    125 BASEDIR=/home/as56/abstractWebService/releases/dx/dxs 
     125BASEDIR=/research/home/spascoe/host/callisto/svn/dx-repackaging/server/dxs 
    126126 
    127127# OUTPUT_DIR: 
     
    141141# Location of persistent session objects saved during a session. 
    142142# These are saved as Python module 
    143 SESSION_OBJECT_DIR=$(BASEDIR)s/sessionObjects 
     143SESSION_OBJECT_DIR=%(BASEDIR)s/sessionObjects 
    144144 
    145145# OUTPUT_FILE_USER: 
  • TI03-DataExtractor/branches/repackaging/server/lib/ndg/dx/server/OptionHandler.py

    r1774 r1813  
    3030configSection = 'ndg.dx.server' 
    3131RESTRICTED_DATA = config.getboolean(configSection, 'RESTRICTED_DATA') 
     32TOP_LEVEL = config.get(configSection, 'TOP_LEVEL') 
    3233 
    3334class OptionHandler: 
  • TI03-DataExtractor/branches/repackaging/server/lib/ndg/dx/server/scripts/DXWSInterface.py

    r1776 r1813  
    4646from ndg.utils.config import config 
    4747configSection = 'ndg.dx.server' 
    48 SOAP_SERVER_PORT = config.get(configSection, 'SOAP_SERVER_PORT') 
     48SOAP_SERVER_PORT = config.getint(configSection, 'SOAP_SERVER_PORT') 
    4949 
    5050def callControllerDirectly(argList): 
     
    476476        args = sys.argv[1:] 
    477477 
    478     config.read(args[0]) 
     478    #config.read(args[0]) 
     479 
     480    from ZSI import dispatch 
     481    import ndg.dx.server.scripts.DXWSInterface as Self 
    479482     
    480483    # Serve all functions as Web Service methods.     
    481484    print "Setting up server" 
    482485    print "Serving Web Service on port: %s" % SOAP_SERVER_PORT 
    483     dispatch.AsServer(port=SOAP_SERVER_PORT, rpc=True)    
     486    dispatch.AsServer(port=SOAP_SERVER_PORT, modules = (Self,), rpc=True)    
  • TI03-DataExtractor/branches/repackaging/server/setup.py

    r1776 r1813  
    2424    namespace_packages = ['ndg', 'ndg.dx'], 
    2525 
    26     install_requires = ['ZSI==2.0rc3', 'cdat-lite', 
     26    install_requires = ['ZSI==2.0rc3', 'cdat_lite', 
    2727                        'ndg_utils'], 
    2828    entry_points = ''' 
Note: See TracChangeset for help on using the changeset viewer.