Changeset 6786 for TI12-security/trunk
- Timestamp:
- 30/03/10 13:18:10 (10 years ago)
- Location:
- TI12-security/trunk/ndg_saml/ndg/saml
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/ndg_saml/ndg/saml/saml2/core.py
r6646 r6786 415 415 416 416 def __eq__(self, decision): 417 return self.__value == decision.value 417 if isinstance(decision, DecisionType): 418 # Cast to string 419 value = decision.value 420 421 elif isinstance(decision, basestring): 422 value = decision 423 424 else: 425 raise TypeError('Expecting string or DecisionType instance for ' 426 'input decision value; got %r instead' % 427 type(value)) 428 429 if value not in self.__class__.TYPES: 430 raise AttributeError('Permissable decision types are %r; got ' 431 '%r instead' % (DecisionType.TYPES, value)) 432 433 return self.__value == value 418 434 419 435 … … 1744 1760 Sets the Code of this Status. 1745 1761 1746 @param value: 1762 @param value: the Code of this Status 1747 1763 ''' 1748 1764 if not isinstance(value, StatusCode): … … 2249 2265 class SubjectQuery(RequestAbstractType): 2250 2266 """SAML 2.0 Core Subject Query type""" 2267 2268 DEFAULT_ELEMENT_LOCAL_NAME = 'SubjectQuery' 2269 2251 2270 __slots__ = ('__subject', ) 2252 2271 -
TI12-security/trunk/ndg_saml/ndg/saml/xml/etree.py
r6609 r6786 676 676 attributeValueElementTree = factory(attributeValue) 677 677 678 attributeValueElem =attributeValueElementTree.toXML(attributeValue)678 attributeValueElem = attributeValueElementTree.toXML(attributeValue) 679 679 elem.append(attributeValueElem) 680 680 … … 1014 1014 issuer.format = issuerFormat 1015 1015 1016 if elem.text is None: 1017 raise XMLTypeParseError('No SAML issuer value set') 1018 1016 1019 issuer.value = elem.text.strip() 1017 1020
Note: See TracChangeset
for help on using the changeset viewer.