Ignore:
Timestamp:
16/03/10 11:56:31 (11 years ago)
Author:
pjkersha
Message:

Added XACML Target ElementTree based parser.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/NDGSecurity/python/ndg_security_common/ndg/security/common/authz/xacml/target.py

    r6731 r6734  
    55''' 
    66from ndg.security.common.utils import TypedList 
     7"""NDG Security Target type definition 
     8 
     9NERC DataGrid Project 
     10""" 
     11__author__ = "P J Kershaw" 
     12__date__ = "25/02/10" 
     13__copyright__ = "(C) 2010 Science and Technology Facilities Council" 
     14__contact__ = "Philip.Kershaw@stfc.ac.uk" 
     15__license__ = "BSD - see LICENSE file in top-level directory" 
     16__contact__ = "Philip.Kershaw@stfc.ac.uk" 
     17__revision__ = "$Id: $" 
    718from ndg.security.common.authz.xacml import PolicyComponent 
    819from ndg.security.common.authz.xacml.action import Action 
     
    1526    ELEMENT_LOCAL_NAME = "Target" 
    1627     
    17     __slots__ = ('__actions', '_resources', '__actions', '__environments') 
     28    __slots__ = ('__actions', '__resources', '__actions', '__environments') 
    1829     
    1930    def __init__(self): 
    2031        self.__actions = TypedList(Subject) 
    2132        self.__resources = TypedList(Resource) 
    22         self.__actions = TypedList(Actions) 
     33        self.__actions = TypedList(Action) 
    2334        self.__environments = TypedList(Environment) 
    2435     
Note: See TracChangeset for help on using the changeset viewer.