All data by metadata provider is in list form.
Bug #363180 reported by
dragonpaw
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
repoze.who LDAP plugin |
Won't Fix
|
Wishlist
|
Gustavo Narea |
Bug Description
As it stands now, all metadata returned is in list form, even when it is single element. This makes for some unappealing code when accessing these attributes. (Maybe this is a 'feature' of my specific LDAP server?)
email = request.
name = request.
...
(I'm complaining about the trailing [0].)
To post a comment you must log in.
Hello, dragonpaw.
I understand the problem with the keys, but unfortunately I'm afraid there's nothing we could do here, since it's perfectly valid to have more than one value for a field.
Cheers.