Ignore:
Timestamp:
20/01/09 16:39:49 (11 years ago)
Author:
pjkersha
Message:
  • Got rid of additional refs to Q Public licence in headers
  • Added ndg.security.server.wsgi.openid.relyingparty package and started OpenIDRelyingPartyMiddleware wrapper to AuthKit?
  • fixed classfactory import bug
  • tested Attribute Authority over SSL with mod_wsgi with AA and SM client unit tests
Location:
TI12-security/trunk/python/ndg.security.common/ndg/security/common
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.common/ndg/security/common/credentialrepository/__init__.py

    r4770 r4855  
    33NERC Data Grid Project 
    44 
    5 This software may be distributed under the terms of the Q Public License, 
    6 version 1.0 or later. 
    75""" 
    86__author__ = "P J Kershaw" 
  • TI12-security/trunk/python/ndg.security.common/ndg/security/common/m2CryptoSSLUtility.py

    r4840 r4855  
    7070        elif caCertFilePathList: 
    7171            self.caCertFilePathList = caCertFilePathList 
     72        else: 
     73            # Set default to enable len() test in __call__ 
     74            self.__caCertStack = () 
    7275             
    7376    def __call__(self, peerCert, host=None): 
  • TI12-security/trunk/python/ndg.security.common/ndg/security/common/sessionmanager.py

    r4770 r4855  
    55NERC Data Grid Project 
    66 
    7 This software may be distributed under the terms of the Q Public License, 
    8 version 1.0 or later. 
    97""" 
    108__author__ = "P J Kershaw" 
  • TI12-security/trunk/python/ndg.security.common/ndg/security/common/utils/classfactory.py

    r4841 r4855  
    5555            if moduleFilePath: 
    5656                if not os.path.exists(moduleFilePath): 
    57                     raise IOError("Module file path '%s' doesn't exist" % \ 
     57                    raise IOError("Module file path '%s' doesn't exist" %  
    5858                                  moduleFilePath) 
    5959                           
     
    6363                sys.path.append(moduleFilePath) 
    6464 
    65 #            from paste.util.import_string import eval_import 
    66 #            mod = eval_import(moduleName) 
    6765             
    6866            # Import module name specified in properties file 
    69             importModule=__import__(moduleName,globals(),locals(),[className]) 
     67            importModule = __import__(moduleName) 
    7068            components = moduleName.split('.') 
    71             for components in components[1:]: 
    72                 module = getattr(module, part) 
     69            for component in components[1:]: 
     70                importModule = getattr(importModule, component) 
    7371 
    74             importClass = getattr(module, className) 
    75             #importClass = eval('importModule.'+className) 
     72            importClass = getattr(importModule, className) 
    7673        finally: 
    7774            # revert back to original sys path, if necessary 
     
    8279                             
    8380    except Exception, e: 
    84         raise ClassFactoryError('Error importing %s module: %s'%(moduleName,e)) 
     81        log.error('%s module import raised %s type exception: %s' %  
     82                  (moduleName, e.__class__, e)) 
     83        raise  
    8584 
    8685    # Check class inherits from AAproxy abstract base class 
     
    9796 
    9897    except Exception, e: 
    99         log.error("Error instantiating class, %s: %s"%(importClass.__name__,e)) 
     98        log.error("Instantiating class, %s: %s"%(importClass.__name__,e)) 
    10099        raise 
    101100             
  • TI12-security/trunk/python/ndg.security.common/ndg/security/common/zsi/__init__.py

    r4770 r4855  
    44NERC Data Grid Project 
    55 
    6 This software may be distributed under the terms of the Q Public License, 
    7 version 1.0 or later. 
    86""" 
    97__author__ = "P J Kershaw" 
  • TI12-security/trunk/python/ndg.security.common/ndg/security/common/zsi/attributeauthority/__init__.py

    r4770 r4855  
    33NERC Data Grid Project 
    44 
    5 This software may be distributed under the terms of the Q Public License, 
    6 version 1.0 or later. 
    75""" 
    86__author__ = "P J Kershaw" 
  • TI12-security/trunk/python/ndg.security.common/ndg/security/common/zsi/sessionmanager/__init__.py

    r4770 r4855  
    33NERC Data Grid Project 
    44 
    5 This software may be distributed under the terms of the Q Public License, 
    6 version 1.0 or later. 
    75""" 
    86__author__ = "P J Kershaw" 
Note: See TracChangeset for help on using the changeset viewer.