Backward map values are 2-tuples as are forward map keys

This commit is contained in:
Roland Hedberg
2010-03-11 20:56:46 +01:00
parent bf93273fde
commit 3e4b3f1e92

View File

@@ -102,7 +102,7 @@ def do_sp_sso_descriptor(sp, cert, backward_map):
"is_required": "true",
"friendly_name": attr,
"name_format": NAME_FORMAT_URI,
"name": backward_map[attr]
"name": backward_map[attr][0]
})
except KeyError:
requested_attribute.append({
@@ -118,7 +118,7 @@ def do_sp_sso_descriptor(sp, cert, backward_map):
requested_attribute.append({
"friendly_name": attr,
"name_format": NAME_FORMAT_URI,
"name": backward_map[attr]
"name": backward_map[attr][0]
})
except KeyError:
requested_attribute.append({