Ignore:
Timestamp:
30/11/10 22:26:05 (10 years ago)
Author:
pjkersha
Message:

Incomplete - task 16: NDG Security 2.x.x - incl. updated Paster templates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/NDGSecurity/python/ndg_security_server/ndg/security/server/paster_templates/template.py

    r7733 r7756  
    1919    # Get first alias from list if present 
    2020    _hostname = _hostTuple[1][0] 
    21 except TypeError: 
     21except IndexError: 
    2222    # ... or default to hostname 
    2323    _hostname = _hostTuple[0] 
     
    108108 
    109109         
    110 from ndg.saml.saml2.core.AbstractNameIDType import X509_SUBJECT 
     110from ndg.saml.saml2.core import Issuer 
    111111 
    112112class AuthorisationServiceTemplate(Template): 
    113113    """Paster template for the authorisation service""" 
    114     DEFAULT_MOUNT_POINT = 'AuthorisationService' 
     114     
     115    DEFAULT_MOUNT_POINT = '/AuthorisationService' 
    115116    DEFAULT_ISSUER_NAME = 'O=NDG, OU=Security, CN=localhost' 
    116     DEFAULT_ISSUER_FORMAT = X509_SUBJECT 
     117    DEFAULT_ISSUER_FORMAT = Issuer.X509_SUBJECT 
    117118     
    118119    _template_dir = 'authorisationservice' 
     
    130131        var('issuerFormat',  
    131132            ('Format of issuerName string; if using the default, ensure that ' 
    132              'the issuerName value is a correctly formatted X.509 Subject Name'), 
     133             'the issuerName value is a correctly formatted X.509 Subject ' 
     134             'Name'), 
    133135            default=DEFAULT_ISSUER_FORMAT) 
    134136    ] 
Note: See TracChangeset for help on using the changeset viewer.