0001-boolean-attributes-convertered-to-unicode-and-lower-.patch
authentic2/saml/models.py | ||
---|---|---|
395 | 395 |
atvs = [] |
396 | 396 |
for value in values: |
397 | 397 |
atv = lasso.Saml2AttributeValue() |
398 |
if isinstance(value, bool): |
|
399 |
value = unicode(value).lower() |
|
400 |
else: |
|
401 |
value = unicode(value) |
|
398 | 402 |
value = value.encode('utf-8') |
399 | 403 |
tn = lasso.MiscTextNode.newWithString(value) |
400 | 404 |
tn.textChild = True |
401 |
- |