Ignore:
Timestamp:
19/01/09 16:42:25 (11 years ago)
Author:
pjkersha
Message:

More work on security filter pipeline.

Location:
TI12-security/trunk/python/ndg.security.common/ndg/security/common
Files:
2 edited

Legend:

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

    r4838 r4841  
    5252        if filePath is not None: 
    5353            if not isinstance(filePath, basestring): 
    54                 raise X509CertError( 
    55                         "Certificate File Path input must be a valid string") 
     54                raise X509CertError("Certificate File Path input must be a " 
     55                                    "valid string") 
    5656             
    5757        self.__filePath = filePath             
     
    6262        if m2CryptoX509: 
    6363            self.__setM2CryptoX509(m2CryptoX509) 
    64          
     64        else: 
     65            self.__m2CryptoX509 = None 
    6566 
    6667    def read(self,  
  • TI12-security/trunk/python/ndg.security.common/ndg/security/common/utils/classfactory.py

    r4840 r4841  
    6868            # Import module name specified in properties file 
    6969            importModule=__import__(moduleName,globals(),locals(),[className]) 
     70            components = moduleName.split('.') 
     71            for components in components[1:]: 
     72                module = getattr(module, part) 
    7073 
    71             #importClass = getattr(importModule, className) 
    72             importClass = eval('importModule.'+className) 
     74            importClass = getattr(module, className) 
     75            #importClass = eval('importModule.'+className) 
    7376        finally: 
    7477            # revert back to original sys path, if necessary 
Note: See TracChangeset for help on using the changeset viewer.