fix for bad xsi:nil on complex attributevalue
This commit is contained in:
parent
8aa80e9e67
commit
bf96c83b2d
|
@ -139,10 +139,12 @@ class AttributeValueBase(SamlBase):
|
|||
if self._extatt:
|
||||
self.extension_attributes = self._extatt
|
||||
|
||||
if not text:
|
||||
self.extension_attributes = {XSI_NIL: 'true'}
|
||||
else:
|
||||
if text:
|
||||
self.set_text(text)
|
||||
elif not extension_elements:
|
||||
self.extension_attributes = {XSI_NIL: 'true'}
|
||||
elif XSI_TYPE in self.extension_attributes:
|
||||
del self.extension_attributes[XSI_TYPE]
|
||||
|
||||
def __setattr__(self, key, value):
|
||||
if key == "text":
|
||||
|
|
Loading…
Reference in New Issue