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:
|
if self._extatt:
|
||||||
self.extension_attributes = self._extatt
|
self.extension_attributes = self._extatt
|
||||||
|
|
||||||
if not text:
|
if text:
|
||||||
self.extension_attributes = {XSI_NIL: 'true'}
|
|
||||||
else:
|
|
||||||
self.set_text(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):
|
def __setattr__(self, key, value):
|
||||||
if key == "text":
|
if key == "text":
|
||||||
|
Loading…
Reference in New Issue
Block a user