POC Campus Condorcet : tri alphabetique des champs select partie invitant
This commit is contained in:
parent
a3adea748d
commit
171fb85533
|
@ -114,6 +114,7 @@ def ldap_get_attribute_from_subtree_nodes(subtree_base, filter, attribute):
|
|||
description = node_data.get('description', [_('No description')])[0]
|
||||
choices.append((attribute_value, description))
|
||||
|
||||
choices.sort(key=lambda x: unicode(x[1], 'utf-8'))
|
||||
return choices
|
||||
|
||||
def ldap_terminate(l):
|
||||
|
|
Reference in New Issue