Projet

Général

Profil

0001-boolean-attributes-convertered-to-unicode-and-lower-.patch

Serghei Mihai, 02 février 2015 18:14

Télécharger (957 octets)

Voir les différences:

Subject: [PATCH] boolean attributes convertered to unicode and lower-cased and
 the other converted to unicode

Closes #6376
 authentic2/saml/models.py | 4 ++++
 1 file changed, 4 insertions(+)
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
-