Changeset 7324
- Timestamp:
- 13/08/10 15:20:05 (11 years ago)
- Location:
- TI12-security/trunk/ndg_xacml/ndg/xacml
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/ndg_xacml/ndg/xacml/core/attributedesignator.py
r7299 r7324 183 183 # added to the bag. 184 184 attributeValues = context.ctxHandler.pipQuery(context, self) 185 attributeValueBag.extend(attributeValues) 185 if attributeValues is not None: 186 attributeValueBag.extend(attributeValues) 186 187 187 188 if len(attributeValueBag) == 0 and self.mustBePresent: -
TI12-security/trunk/ndg_xacml/ndg/xacml/core/attributevalue.py
r7109 r7324 108 108 __slots__ = ('__value',) 109 109 110 def __init__(self): 111 """Derived classes must override setting TYPE class variable""" 110 def __init__(self, value=None): 111 """Derived classes must override setting TYPE class variable 112 113 @param value: initialise the attribute value by setting this keyword 114 @type value: (set by self.__class__.TYPE) 115 """ 112 116 113 117 super(AttributeValue, self).__init__() … … 120 124 # Allow derived classes to make an implicit data type setting 121 125 self.dataType = self.__class__.IDENTIFIER 126 127 if value is not None: 128 self.value = value 122 129 123 130 def __repr__(self): -
TI12-security/trunk/ndg_xacml/ndg/xacml/utils/__init__.py
r7109 r7324 245 245 else: 246 246 return None 247 248 249 247 248 def __repr__(self): 249 return repr(self.__map) 250 251 def keys(self): 252 return self.__map.keys() 253 254 def items(self): 255 return self.__map.items() 256 257 def values(self): 258 return self.__map.values() 259 260 def __contains__(self, val): 261 return self.__map.__contains__(val) 262
Note: See TracChangeset
for help on using the changeset viewer.