Ignore:
Timestamp:
19/12/08 16:39:57 (11 years ago)
Author:
pjkersha
Message:

Refactoring of SSO service to enable use of local AA and SM instances via keys to environ.

File:
1 edited

Legend:

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

    r4688 r4692  
    22 
    33from paste.script.templates import Template, var, _skip_variables 
     4import os 
    45import socket 
    56_hostTuple = socket.gethostbyaddr(socket.gethostname()) 
     
    2223    summary = 'NERC DataGrid Security services deployment template' 
    2324    vars = vars 
    24      
     25 
     26    def write_files(self, command, output_dir, vars): 
     27        '''Extend to enable substitutions for Single Sign On Service config 
     28        file''' 
     29        if output_dir.startswith('./'): 
     30            outDir = output_dir.lstrip('./') 
     31        else: 
     32            outDir = output_dir 
     33             
     34        vars['ssoConfigDir'] = os.path.join(os.getcwd(), outDir, 'sso') 
     35        super(DefaultDeploymentTemplate, self).write_files(command,  
     36                                                           output_dir,  
     37                                                           vars) 
Note: See TracChangeset for help on using the changeset viewer.