Changeset 4001


Ignore:
Timestamp:
06/06/08 13:55:21 (11 years ago)
Author:
pjkersha
Message:

ndg.security.server/setup.py: fix to entry points for paster SSO service

Location:
TI12-security/trunk/python
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/Tests/pylonsAttributeAuthority/ndgsecurity/ndgsecurity/config/middleware.py

    r3960 r4001  
    4040    # The Pylons WSGI app 
    4141    app = PylonsApp() 
    42  
     42     
    4343    # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares) 
    4444    app = SignatureVerificationMiddleware(app, global_conf) 
  • TI12-security/trunk/python/Tests/pylonsAttributeAuthority/ndgsecurity/ndgsecurity/config/soap.py

    r3960 r4001  
    4242        if not environ['PATH_INFO'].startswith(self.app_conf['pathInfo']): 
    4343            return self.app(environ, start_response) 
    44          
     44 
     45        def start_response_wrapper(status, response_headers, exc_info=None): 
     46            return start_response(status,  
     47                                  [('Content-type', 'text/xml')], 
     48                                  exc_info) 
     49             
     50              
    4551        soapIn = environ['wsgi.input'].getvalue() 
    4652        log.debug("SOAP Request") 
     
    6167        sw.serialize(resp) 
    6268         
    63         soapOut = str(sw) 
     69        self.soapOut = str(sw) 
    6470         
    6571        log.debug("SOAP Response") 
     
    7076#        if soap is not None: 
    7177#            return self._writeResponse(request, soap) 
    72         self.app(environ, start_response) 
    73         start_response("200 OK", [('Content-type', 'text/xml')]) 
    74         return soapOut  
     78         
     79        app = self.app(environ, start_response_wrapper) 
     80        #start_response("200 OK", [('Content-type', 'text/xml')]) 
     81        return soapOut 
  • TI12-security/trunk/python/ndg.security.server/setup.py

    r3994 r4001  
    3636 
    3737# Make a script interface to MyProxy client 
    38 _entryPoints = {'console_scripts': [\ 
    39     'myproxy-client = ndg.security.server.MyProxy:main', 
    40     'init-credrepos-db = ndg.security.server.initCredReposDb:main'] 
    41 } 
     38_entryPoints = """ 
     39    [console_scripts]  
     40    myproxy-client=ndg.security.server.MyProxy:main, 
     41    init-credrepos-db=ndg.security.server.initCredReposDb:main 
     42 
     43    [paste.app_factory] 
     44    main=ndg.security.server.sso.sso:make_app 
     45    [paste.app_install] 
     46    main=pylons.util:PylonsInstaller 
     47    """ 
    4248 
    4349setup( 
     
    6773    namespace_packages =        ['ndg', 'ndg.security'], 
    6874    package_data =          { 
     75        'ndg.security.server.sso.sso': ['i18n/*/LC_MESSAGES/*.mo'], 
    6976        'ndg.security.server.conf': ['*.xml','*.py','*.tac','*.cfg','*.conf'], 
    7077        'ndg.security.server.conf.certs': ['*.crt'], 
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/attAuthority/attAuthorityClientTest.cfg

    r3994 r4001  
    1111# ! SiteBMapConfig.xml trusted site A aaURI setting must agree with this  
    1212# setting for test6GetMappedAttCert 
    13 #uri = http://localhost:5010/AttributeAuthority 
    14 uri = http://localhost:5000/AttributeAuthority 
     13uri = http://localhost:5010/AttributeAuthority 
     14#uri = http://localhost:5000/AttributeAuthority 
    1515 
    1616# For https connections only.  !Omit ssl* settings if using http! 
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/authz/pdp/testProftPDP.py

    r3793 r4001  
    5252        print "\n\t" + self.test1AccessPermitted.__doc__ 
    5353        resrcHandle['dir'] = os.environ['NDGSEC_PDP_UNITTEST_DIR'] 
    54         userHandle['h'] = 
    55         userHandle['sid'] =  
     54#        userHandle['h'] = 
     55#        userHandle['sid'] =  
    5656        self.pdp(resrcHandle, userHandle, None) 
    5757 
Note: See TracChangeset for help on using the changeset viewer.