Ignore:
Timestamp:
29/07/10 21:29:29 (11 years ago)
Author:
pjkersha
Message:

Incomplete - task 2: XACML-Security Integration

  • Important fix to equal function base class in ndg.xacml.core.functions.v1.equal. Type checking was incorrect.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/ndg_xacml/ndg/xacml/core/context/pdp.py

    r7109 r7256  
    4848        """            
    4949        pdp = cls() 
    50         pdp.policy = Policy.fromSource(source, readerFactory) 
     50        pdp.setPolicyFromSource(source, readerFactory) 
    5151        return pdp 
    5252     
     53    def setPolicyFromSource(self, source, readerFactory): 
     54        """initialise PDP with the given policy 
     55        @param source: source for policy 
     56        @type source: type (dependent on the reader set, it could be for example 
     57        a file path string, file object, XML element instance) 
     58        @param readerFactory: reader factory returns the reader to use to read  
     59        this policy 
     60        @type readerFactory: ndg.xacml.parsers.AbstractReader derived type 
     61        """            
     62        self.policy = Policy.fromSource(source, readerFactory) 
     63         
    5364    @property 
    5465    def policy(self): 
Note: See TracChangeset for help on using the changeset viewer.