Changeset 7064 for TI12-security/trunk


Ignore:
Timestamp:
23/06/10 16:41:37 (9 years ago)
Author:
pjkersha
Message:

Incomplete - task 2: XACML-Security Integration

  • added and and function and placeholders fro xpath-node-* functions
Location:
TI12-security/trunk/NDG_XACML
Files:
2 added
95 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/NDG_XACML/.project

    • Property svn:keywords set to Id
  • TI12-security/trunk/NDG_XACML/.pydevproject

    • Property svn:keywords set to Id
  • TI12-security/trunk/NDG_XACML/LICENSE

    • Property svn:keywords set to Id
  • TI12-security/trunk/NDG_XACML/ez_setup.py

    • Property svn:keywords set to Id
  • TI12-security/trunk/NDG_XACML/ndg/__init__.py

    • Property svn:keywords set to Id
    r6746 r7064  
    1616__license__ = "BSD - see LICENSE file in top-level directory" 
    1717__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    18 __revision__ = '$Id: $' 
     18__revision__ = '$Id$' 
    1919__import__('pkg_resources').declare_namespace(__name__) 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/__init__.py

    • Property svn:keywords set to Id
    r6796 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212class XacmlError(Exception): 
    1313    """Base class for XACML package exception types""" 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/__init__.py

    • Property svn:keywords set to Id
    r6807 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.utils import TypedList 
    1313 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/action.py

    • Property svn:keywords set to Id
    r6770 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core import TargetChildBase 
    1313from ndg.xacml.core.match import ActionMatch 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/apply.py

    • Property svn:keywords set to Id
    r6807 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.utils import TypedList 
    1313from ndg.xacml.core.expression import Expression 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/attribute.py

    • Property svn:keywords set to Id
    r6805 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.utils import TypedList 
    1313from ndg.xacml.core import XacmlCoreBase 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/attributedesignator.py

    • Property svn:keywords set to Id
    r6986 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.utils import TypedList 
    1313from ndg.xacml.core.expression import Expression 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/attributeselector.py

    • Property svn:keywords set to Id
    r6796 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212import logging 
    1313log = logging.getLogger(__name__) 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/attributevalue.py

    • Property svn:keywords set to Id
    r6807 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from datetime import datetime, timedelta 
    1313 
     
    2121    CLASS_NAME_SUFFIX = 'AttributeValue' 
    2222    IDENTIFIER_PREFIX = 'http://www.w3.org/2001/XMLSchema#' 
     23   
    2324    IDENTIFIER = None 
    24     TYPE_MAP = { 
    25         'String': basestring, 
    26         'AnyURI': basestring, 
    27         'Integer': int, 
    28         'Boolean': bool, 
    29         'Double': float, 
    30         'Date': datetime, 
    31         'DateTime': datetime, 
    32         'Time': datetime, 
    33         'DayTimeDuration': timedelta, 
    34         'YearMonthDuration': timedelta, 
    35         'X500Name': basestring, 
    36         'Rfc822Name': basestring, 
    37         'HexBinary': int, 
    38         'Base64Binary': NotImplemented, 
    39         'IpAddress': basestring, 
    40         'DnsName': basestring 
    41     } 
     25    TYPE_URIS = ( 
     26    'http://www.w3.org/2001/XMLSchema#string', 
     27    'http://www.w3.org/2001/XMLSchema#anyURI', 
     28    'http://www.w3.org/2001/XMLSchema#integer', 
     29    'http://www.w3.org/2001/XMLSchema#boolean', 
     30    'http://www.w3.org/2001/XMLSchema#double', 
     31    'http://www.w3.org/2001/XMLSchema#date', 
     32    'http://www.w3.org/2001/XMLSchema#dateTime', 
     33    'http://www.w3.org/2001/XMLSchema#time', 
     34    'http://www.w3.org/TR/2002/WD-xquery-operators-20020816#dayTimeDuration', 
     35    'http://www.w3.org/TR/2002/WD-xquery-operators-20020816#yearMonthDuration', 
     36    'urn:oasis:names:tc:xacml:1.0:data-type:x500Name', 
     37    'urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name', 
     38    'http://www.w3.org/2001/XMLSchema#hexBinary', 
     39    'http://www.w3.org/2001/XMLSchema#base64Binary', 
     40    'urn:oasis:names:tc:xacml:2.0:data-type:ipAddress', 
     41    'urn:oasis:names:tc:xacml:2.0:data-type:dnsName' 
     42    ) 
     43    TYPE_NAMES = ( 
     44        'String', 
     45        'AnyURI', 
     46        'Integer', 
     47        'Boolean', 
     48        'Double', 
     49        'Date', 
     50        'DateTime', 
     51        'Time', 
     52        'DayTimeDuration', 
     53        'YearMonthDuration', 
     54        'X500Name', 
     55        'Rfc822Name', 
     56        'HexBinary', 
     57        'Base64Binary', 
     58        'IpAddress', 
     59        'DnsName', 
     60    ) 
     61    NATIVE_TYPES = ( 
     62        basestring, 
     63        basestring, 
     64        int, 
     65        bool, 
     66        float, 
     67        datetime, 
     68        datetime, 
     69        datetime, 
     70        timedelta, 
     71        timedelta, 
     72        basestring, 
     73        basestring, 
     74        int, 
     75        NotImplemented, 
     76        basestring, 
     77        basestring 
     78    ) 
     79    TYPE_MAP = dict(zip(TYPE_NAMES, NATIVE_TYPES)) 
     80    TYPE_URI_MAP = dict(zip(TYPE_NAMES, TYPE_URIS)) 
    4281    TYPE = None 
    4382     
     
    122161 
    123162for typeName, _type in AttributeValue.TYPE_MAP.items(): 
    124     identifier = AttributeValue.IDENTIFIER_PREFIX + typeName[0 
    125                                                         ].lower() + typeName[1:] 
     163    identifier = AttributeValue.TYPE_URI_MAP[typeName] 
    126164 
    127165    className = typeName + AttributeValue.CLASS_NAME_SUFFIX                
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/combinerparameter.py

    • Property svn:keywords set to Id
    r6745 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212 
    1313class CombinerParameter(object): 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/condition.py

    • Property svn:keywords set to Id
    r6822 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core import XacmlCoreBase 
    1313from ndg.xacml.core.expression import Expression 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/__init__.py

    • Property svn:keywords set to Id
    r6796 r7064  
    1010__license__ = "BSD - see LICENSE file in top-level directory" 
    1111__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    12 __revision__ = "$Id: $" 
     12__revision__ = "$Id$" 
    1313from ndg.xacml.utils import TypedList 
    1414from ndg.xacml.core import XacmlCoreBase 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/action.py

    • Property svn:keywords set to Id
    r6771 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.context import RequestChildBase 
    1313 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/environment.py

    • Property svn:keywords set to Id
    r6771 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.context import RequestChildBase 
    1313 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/exceptions.py

    • Property svn:keywords set to Id
    r6803 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.context.response import Response 
    1313from ndg.xacml.core.context.result import Result, Decision, StatusCode 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/handler.py

    • Property svn:keywords set to Id
    r6986 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from abc import ABCMeta, abstractmethod 
    1313from ndg.xacml.core.context.pdpinterface import PDPInterface 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/pap.py

    • Property svn:keywords set to Id
    r6775 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/pdp.py

    • Property svn:keywords set to Id
    r6986 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212import logging 
    1313log = logging.getLogger(__name__) 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/pdpinterface.py

    • Property svn:keywords set to Id
    r6986 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from abc import ABCMeta, abstractmethod 
    1313from ndg.xacml.core.context.request import Request 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/pip.py

    • Property svn:keywords set to Id
    r6775 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/request.py

    • Property svn:keywords set to Id
    r6986 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212import logging 
    1313log = logging.getLogger(__name__) 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/resource.py

    • Property svn:keywords set to Id
    r6771 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.context import RequestChildBase 
    1313 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/response.py

    • Property svn:keywords set to Id
    r6777 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212import logging 
    1313log = logging.getLogger(__name__) 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/result.py

    • Property svn:keywords set to Id
    r6807 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212import logging 
    1313log = logging.getLogger(__name__) 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/context/subject.py

    • Property svn:keywords set to Id
    r6771 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.context import RequestChildBase 
    1313 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/environment.py

    • Property svn:keywords set to Id
    r6770 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core import TargetChildBase 
    1313from ndg.xacml.core.match import EnvironmentMatch 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/exceptions.py

    • Property svn:keywords set to Id
    r6796 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml import XacmlError 
    1313 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/expression.py

    • Property svn:keywords set to Id
    r6792 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from abc import ABCMeta, abstractmethod 
    1313 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/functions/__init__.py

    • Property svn:keywords set to Id
    r6805 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from abc import ABCMeta, abstractmethod 
    1313from datetime import datetime, timedelta 
     
    356356            # name in order to make an implementation of a class to handle it 
    357357            functionName = identifier.split(self.__class__.URN_SEP)[-1] 
     358            if functionName == 'xpath-node-match': 
     359                pass 
    358360            typePart = functionName.split(self.__class__.FUNCTION_NS_SUFFIX)[0] 
    359361             
     362            # Attempt to infer from the function name the associated type 
    360363            typeName = typePart[0].upper() + typePart[1:] 
    361             typeURI = AttributeValue.IDENTIFIER_PREFIX + typePart 
     364             
     365            # Remove any hyphens converting to camel case 
     366            if '-' in typeName: 
     367                typeName = ''.join([i[0].upper() + i[1:] 
     368                                    for i in typeName.split('-')]) 
     369                 
     370            typeURI = AttributeValue.TYPE_URI_MAP.get(typeName) 
     371            if typeURI is None: 
     372                # Ugly hack to allow for XPath node functions 
     373                if typePart == 'xpath-node': 
     374                    typeURI = AttributeValue.TYPE_URI_MAP['String'] 
     375                else: 
     376                    raise TypeError('No AttributeValue.TYPE_URI_MAP entry for ' 
     377                                    '%r type' % typePart)  
     378                 
    362379            _type = attributeValueClassFactory(typeURI) 
    363380            if _type is None: 
     
    474491                if len(functionNameParts) == 1: 
    475492                    moduleName = functionNameParts[0] 
     493                     
     494                elif functionName.startswith('xpath-node'): 
     495                    # Ugly hack for xpath-node functions 
     496                    moduleName = functionNameParts[-1].lower() 
    476497                else: 
    477498                    moduleName = '_'.join(functionNameParts[1:]).lower() 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/functions/v1/__init__.py

    • Property svn:keywords set to Id
    r6777 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/functions/v1/at_least_one_member_of.py

    • Property svn:keywords set to Id
    r6805 r7064  
    88__license__ = "BSD - see LICENSE file in top-level directory" 
    99__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    10 __revision__ = '$Id: $' 
     10__revision__ = '$Id$' 
    1111from ndg.xacml.core.functions import AbstractFunction, FunctionClassFactoryBase 
    1212from ndg.xacml.core.context.exceptions import XacmlContextTypeError 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/functions/v1/bag.py

    • Property svn:keywords set to Id
    r6805 r7064  
    88__license__ = "BSD - see LICENSE file in top-level directory" 
    99__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    10 __revision__ = '$Id: $' 
     10__revision__ = '$Id$' 
    1111import sys 
    1212 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/functions/v1/equal.py

    • Property svn:keywords set to Id
    r6804 r7064  
    1 """NDG XACML URI equal matching function module 
     1"""NDG XACML equal function module - contains classes to represent XACML 1.0 
     2*-equal functions 
    23 
    34NERC DataGrid Project 
     
    89__license__ = "BSD - see LICENSE file in top-level directory" 
    910__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    10 __revision__ = '$Id: $' 
    11 #from datetime import datetime, timedelta 
     11__revision__ = '$Id$' 
    1212from ndg.xacml.core.context.exceptions import XacmlContextTypeError 
    1313from ndg.xacml.core.functions import AbstractFunction, FunctionClassFactoryBase 
     
    6060        'urn:oasis:names:tc:xacml:1.0:function:rfc822Name-equal', 
    6161        'urn:oasis:names:tc:xacml:1.0:function:hexBinary-equal', 
    62         'urn:oasis:names:tc:xacml:1.0:function:base64Binary-equal' 
     62        'urn:oasis:names:tc:xacml:1.0:function:base64Binary-equal', 
     63        'urn:oasis:names:tc:xacml:1.0:function:xpath-node-equal' 
    6364    ) 
    6465    FUNCTION_NS_SUFFIX = '-equal' 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/functions/v1/one_and_only.py

    • Property svn:keywords set to Id
    r6804 r7064  
    88__license__ = "BSD - see LICENSE file in top-level directory" 
    99__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    10 __revision__ = '$Id: $' 
     10__revision__ = '$Id$' 
    1111#from datetime import datetime, timedelta 
    1212 
     
    1818class OneAndOnlyBase(AbstractFunction): 
    1919    """Base class for XACML <type>-one-and-only functions""" 
    20     BAG_TYPE = None 
     20    TYPE = None 
    2121     
    2222    def evaluate(self, bag): 
     
    3030                                    'got %r' % (Bag, type(bag))) 
    3131             
    32         if bag.elementType != self.__class__.BAG_TYPE: 
     32        if bag.elementType != self.__class__.TYPE: 
    3333            raise XacmlContextError('Expecting %r type elements for "bag"; ' 
    3434                                    'got %r' % 
    35                                     (self.__class__.BAG_TYPE, bag.elementType)) 
     35                                    (self.__class__.TYPE, bag.elementType)) 
    3636                         
    3737        nBagElems = len(bag) 
    3838        if nBagElems != 1: 
    3939            raise XacmlContextError('Expecting single element for %r bag; got ' 
    40                                     '%r' % 
    41                                     (self.__class__.BAG_TYPE, nBagElems)) 
     40                                    '%r' % (self.__class__.TYPE, nBagElems)) 
    4241             
    4342        return bag[0] 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/functions/v1/regexp_match.py

    • Property svn:keywords set to Id
    r6805 r7064  
    1 """NDG XACML any Regular expression matching function module 
     1"""NDG XACML1.0 Regular expression matching function module 
    22 
    33NERC DataGrid Project 
     
    88__license__ = "BSD - see LICENSE file in top-level directory" 
    99__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    10 __revision__ = '$Id: $' 
     10__revision__ = '$Id$' 
    1111import re 
    1212 
     
    4848attributeValueClassFactory = AttributeValueClassFactory() 
    4949 
     50 
    5051class StringRegexMatch(RegexpMatchBase): 
     52    """String regular expression match function class representation 
     53    """ 
    5154    FUNCTION_NS = 'urn:oasis:names:tc:xacml:1.0:function:string-regexp-match' 
    5255    TYPE = attributeValueClassFactory('http://www.w3.org/2001/XMLSchema#string') 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/functions/v1/round.py

    • Property svn:keywords set to Id
    r6804 r7064  
    88__license__ = "BSD - see LICENSE file in top-level directory" 
    99__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    10 __revision__ = '$Id: $' 
     10__revision__ = '$Id$' 
    1111from ndg.xacml.core.functions import (AbstractFunction,  
    1212                                      FunctionClassFactoryInterface) 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/functions/v2/__init__.py

    • Property svn:keywords set to Id
    r6777 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/functions/v2/regexp_match.py

    • Property svn:keywords set to Id
    r6804 r7064  
    1 """NDG XACML any URI matching function module 
     1"""NDG XACML 2.0 regular expression matching function module 
    22 
    33NERC DataGrid Project 
     
    88__license__ = "BSD - see LICENSE file in top-level directory" 
    99__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    10 __revision__ = '$Id: $' 
     10__revision__ = '$Id$' 
    1111from ndg.xacml.core.functions import FunctionClassFactoryBase 
    1212 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/match.py

    • Property svn:keywords set to Id
    r6807 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212import logging 
    1313log = logging.getLogger(__name__) 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/obligation.py

    • Property svn:keywords set to Id
    r6770 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.utils import TypedList 
    1313from ndg.xacml.core import XacmlCoreBase 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/policy.py

    • Property svn:keywords set to Id
    r7050 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212import traceback 
    1313import logging 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/policydefaults.py

    • Property svn:keywords set to Id
    r6770 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core import XacmlCoreBase 
    1313 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/resource.py

    • Property svn:keywords set to Id
    r6770 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core import TargetChildBase 
    1313from ndg.xacml.core.match import ResourceMatch 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/rule.py

    • Property svn:keywords set to Id
    r6825 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212import traceback 
    1313import logging 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/rule_combining_alg.py

    • Property svn:keywords set to Id
    r7050 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from abc import ABCMeta, abstractmethod 
    1313 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/subject.py

    • Property svn:keywords set to Id
    r6770 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core import TargetChildBase 
    1313from ndg.xacml.core.match import SubjectMatch 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/target.py

    • Property svn:keywords set to Id
    r6825 r7064  
    1515__license__ = "BSD - see LICENSE file in top-level directory" 
    1616__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    17 __revision__ = "$Id: $" 
     17__revision__ = "$Id$" 
    1818import logging 
    1919log = logging.getLogger(__name__) 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/variabledefinition.py

    • Property svn:keywords set to Id
    r6783 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core import XacmlPolicyBase 
    1313 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/core/variablereference.py

    • Property svn:keywords set to Id
    r6783 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core import XacmlPolicyBase 
    1313 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/__init__.py

    • Property svn:keywords set to Id
    r6796 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212import logging 
    1313log = logging.getLogger(__name__) 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/__init__.py

    • Property svn:keywords set to Id
    r6746 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212import logging 
    1313log = logging.getLogger(__name__) 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/actionattributedesignatorreader.py

    • Property svn:keywords set to Id
    r6753 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.attributedesignator import ActionAttributeDesignator 
    1313from ndg.xacml.parsers.etree.attributedesignatorreader import \ 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/actionmatchreader.py

    • Property svn:keywords set to Id
    r6753 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.match import ActionMatch 
    1313from ndg.xacml.core.attributedesignator import ActionAttributeDesignator 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/actionreader.py

    • Property svn:keywords set to Id
    r6752 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.action import Action 
    1313from ndg.xacml.parsers.etree.targetchildreader import TargetChildReader 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/applyreader.py

    • Property svn:keywords set to Id
    r6783 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212import logging 
    1313log = logging.getLogger(__name__) 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/attributedesignatorreader.py

    • Property svn:keywords set to Id
    r6796 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.utils import str2Bool 
    1313from ndg.xacml.parsers import XMLParseError 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/attributeselectorreader.py

    • Property svn:keywords set to Id
    r6754 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.attributeselector import AttributeSelector 
    1313from ndg.xacml.parsers import XMLParseError 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/attributevaluereader.py

    • Property svn:keywords set to Id
    r6802 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.attributevalue import (AttributeValue,  
    1313                                           AttributeValueClassFactory) 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/conditionreader.py

    • Property svn:keywords set to Id
    r6796 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.condition import Condition 
    1313from ndg.xacml.parsers import XMLParseError 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/environmentreader.py

    • Property svn:keywords set to Id
    r6753 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.environment import Environment 
    1313from ndg.xacml.parsers.etree.targetchildreader import TargetChildReader 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/expressionreader.py

    • Property svn:keywords set to Id
    r6754 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from abc import abstractmethod 
    1313 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/factory.py

    • Property svn:keywords set to Id
    r6777 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212import logging 
    1313log = logging.getLogger(__name__) 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/matchreader.py

    • Property svn:keywords set to Id
    r6752 r7064  
    1010__license__ = "BSD - see LICENSE file in top-level directory" 
    1111__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    12 __revision__ = "$Id: $" 
     12__revision__ = "$Id$" 
    1313from ndg.xacml.core.attributevalue import AttributeValue 
    1414from ndg.xacml.core.attributeselector import AttributeSelector 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/policydefaultsreader.py

    • Property svn:keywords set to Id
    r6754 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.policydefaults import PolicyDefaults 
    1313from ndg.xacml.parsers import XMLParseError 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/policyreader.py

    • Property svn:keywords set to Id
    r6754 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.parsers import XMLParseError 
    1313from ndg.xacml.core.policy import Policy 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/reader.py

    • Property svn:keywords set to Id
    r6783 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212import logging 
    1313log = logging.getLogger(__name__) 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/resourceattributedesignatorreader.py

    • Property svn:keywords set to Id
    r6752 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.attributedesignator import ResourceAttributeDesignator 
    1313from ndg.xacml.parsers.etree.attributedesignatorreader import \ 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/resourcematchreader.py

    • Property svn:keywords set to Id
    r6752 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.match import ResourceMatch 
    1313from ndg.xacml.core.attributedesignator import ResourceAttributeDesignator 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/resourcereader.py

    • Property svn:keywords set to Id
    r6752 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.resource import Resource 
    1313from ndg.xacml.parsers.etree.subjectreader import TargetChildReader 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/rulereader.py

    • Property svn:keywords set to Id
    r6790 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.rule import Rule, Effect 
    1313from ndg.xacml.core.condition import Condition 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/subjectattributedesignatorreader.py

    • Property svn:keywords set to Id
    r6752 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.attributedesignator import SubjectAttributeDesignator 
    1313from ndg.xacml.parsers.etree.attributedesignatorreader import \ 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/subjectmatchreader.py

    • Property svn:keywords set to Id
    r6752 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.match import SubjectMatch 
    1313from ndg.xacml.core.attributedesignator import SubjectAttributeDesignator 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/subjectreader.py

    • Property svn:keywords set to Id
    r6752 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.subject import Subject 
    1313from ndg.xacml.parsers.etree.targetchildreader import TargetChildReader 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/targetchildreader.py

    • Property svn:keywords set to Id
    r6752 r7064  
    1010__license__ = "BSD - see LICENSE file in top-level directory" 
    1111__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    12 __revision__ = "$Id: $" 
     12__revision__ = "$Id$" 
    1313from ndg.xacml.core.subject import Subject 
    1414from ndg.xacml.parsers import XMLParseError 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/targetreader.py

    • Property svn:keywords set to Id
    r6752 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from ndg.xacml.core.target import Target 
    1313from ndg.xacml.core.subject import Subject 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/parsers/etree/writer.py

    • Property svn:keywords set to Id
    r6740 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/test/__init__.py

    • Property svn:keywords set to Id
    r6778 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = "$Id: $" 
     11__revision__ = "$Id$" 
    1212from os import path 
    1313 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/test/ndg1.xml

    • Property svn:keywords set to Id
  • TI12-security/trunk/NDG_XACML/ndg/xacml/test/rule1.xml

    • Property svn:keywords set to Id
  • TI12-security/trunk/NDG_XACML/ndg/xacml/test/rule2.xml

    • Property svn:keywords set to Id
    r6783 r7064  
    4444                <Resource> 
    4545                    <ResourceMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> 
    46                         <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string"> 
    47                             urn:med:example:schemas:record 
    48                         </AttributeValue> 
     46                        <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">urn:med:example:schemas:record</AttributeValue> 
    4947                        <ResourceAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:2.0:resource:target-namespace" DataType="http://www.w3.org/2001/XMLSchema#string"/> 
    5048                    </ResourceMatch> 
    5149                    <ResourceMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:xpath-node-match"> 
    52                         <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string"> 
    53                             /md:record 
    54                         </AttributeValue> 
     50                        <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">/md:record</AttributeValue> 
    5551                        <ResourceAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:resource:xpath" DataType="http://www.w3.org/2001/XMLSchema#string"/> 
    5652                    </ResourceMatch> 
     
    6056                <Action> 
    6157                    <ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> 
    62                         <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string"> 
    63                             read 
    64                         </AttributeValue> 
     58                        <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">read</AttributeValue> 
    6559                        <ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string"/> 
    6660                    </ActionMatch> 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/test/rule3.xml

    • Property svn:keywords set to Id
  • TI12-security/trunk/NDG_XACML/ndg/xacml/test/rule4.xml

    • Property svn:keywords set to Id
    r6754 r7064  
    1515                <Subject> 
    1616                    <SubjectMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> 
    17                         <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string"> 
    18                             administrator 
    19                         </AttributeValue> 
     17                        <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">administrator</AttributeValue> 
    2018                        <SubjectAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:2.0:example:attribute:role" DataType="http://www.w3.org/2001/XMLSchema#string"/> 
    2119                    </SubjectMatch> 
     
    2523                <Resource> 
    2624                    <ResourceMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> 
    27                         <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string"> 
    28                             urn:med:example:schemas:record 
    29                         </AttributeValue> 
     25                        <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">urn:med:example:schemas:record</AttributeValue> 
    3026                        <ResourceAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:resource:target-namespace" DataType="http://www.w3.org/2001/XMLSchema#string"/> 
    3127                    </ResourceMatch> 
    3228                    <ResourceMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:xpath-node-match"> 
    33                         <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string"> 
    34                             /md:record/md:medical 
    35                         </AttributeValue> 
     29                        <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">/md:record/md:medical</AttributeValue> 
    3630                        <ResourceAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:resource:xpath" DataType="http://www.w3.org/2001/XMLSchema#string"/> 
    3731                    </ResourceMatch> 
     
    4135                <Action> 
    4236                    <ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> 
    43                         <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string"> 
    44                             read 
    45                         </AttributeValue> 
     37                        <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">read</AttributeValue> 
    4638                        <ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string"/> 
    4739                    </ActionMatch> 
     
    4941                <Action> 
    5042                    <ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> 
    51                         <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string"> 
    52                             write 
    53                         </AttributeValue> 
     43                        <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">write</AttributeValue> 
    5444                        <ActionAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string"/> 
    5545                    </ActionMatch> 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/test/test_context.py

    • Property svn:keywords set to Id
    r6986 r7064  
    1010__license__ = "BSD - see LICENSE file in top-level directory" 
    1111__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    12 __revision__ = "$Id: $" 
     12__revision__ = "$Id$" 
    1313import unittest 
    1414from os import path 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/test/test_matchfunctions.py

    • Property svn:keywords set to Id
    r6780 r7064  
    1010__license__ = "BSD - see LICENSE file in top-level directory" 
    1111__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    12 __revision__ = "$Id: $" 
     12__revision__ = "$Id$" 
    1313import unittest 
    1414from os import path 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/test/test_policy.py

    • Property svn:keywords set to Id
    r6781 r7064  
    1010__license__ = "BSD - see LICENSE file in top-level directory" 
    1111__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    12 __revision__ = "$Id: $" 
     12__revision__ = "$Id$" 
    1313import unittest 
    1414from os import path 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/utils/__init__.py

    • Property svn:keywords set to Id
    r6805 r7064  
    88__license__ = "BSD - see LICENSE file in top-level directory" 
    99__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    10 __revision__ = '$Id: $' 
     10__revision__ = '$Id$' 
    1111 
    1212# Interpret a string as a boolean 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/utils/configfileparsers.py

    • Property svn:keywords set to Id
    r6746 r7064  
    88__license__ = "BSD - see LICENSE file in top-level directory" 
    99__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    10 __revision__ = '$Id: $' 
     10__revision__ = '$Id$' 
    1111 
    1212from ConfigParser import SafeConfigParser, InterpolationMissingOptionError, \ 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/utils/etree.py

    • Property svn:keywords set to Id
    r6746 r7064  
    88__license__ = "BSD - see LICENSE file in top-level directory" 
    99__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    10 __revision__ = '$Id: $' 
     10__revision__ = '$Id$' 
    1111try: # python 2.5 
    1212    from xml.etree import cElementTree, ElementTree 
  • TI12-security/trunk/NDG_XACML/ndg/xacml/utils/factory.py

    • Property svn:keywords set to Id
    r6686 r7064  
    99__license__ = "BSD - see LICENSE file in top-level directory" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    11 __revision__ = '$Id: $' 
     11__revision__ = '$Id$' 
    1212import traceback 
    1313import logging, os, sys 
  • TI12-security/trunk/NDG_XACML/setup.cfg

    • Property svn:keywords set to Id
  • TI12-security/trunk/NDG_XACML/setup.py

    • Property svn:keywords set to Id
    r6796 r7064  
    1010__license__ = "BSD - see LICENSE file in top-level directory" 
    1111__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    12 __revision__ = '$Id: setup.py 6628 2010-02-24 14:22:35Z pjkersha $' 
     12__revision__ = '$Id$' 
    1313 
    1414# Bootstrap setuptools if necessary. 
Note: See TracChangeset for help on using the changeset viewer.