# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1239724991 -7200 # Node ID 659d3dc42e68b4ea90ab65c328668dcb3885d22c # Parent 4273e44852cb79a2e827d522a28a0eabb6e7c503 sort on EUser.login/EGroup.name in vocabulary diff -r 4273e44852cb -r 659d3dc42e68 entities/authobjs.py --- a/entities/authobjs.py Tue Apr 14 14:50:42 2009 +0200 +++ b/entities/authobjs.py Tue Apr 14 18:03:11 2009 +0200 @@ -13,15 +13,16 @@ class EGroup(AnyEntity): id = 'EGroup' fetch_attrs, fetch_order = fetch_config(['name']) + fetch_unrelated_order = fetch_order def db_key_name(self): """XXX goa specific""" return self.get('name') - class EUser(AnyEntity): id = 'EUser' fetch_attrs, fetch_order = fetch_config(['login', 'firstname', 'surname']) + fetch_unrelated_order = fetch_order # used by repository to check if the user can log in or not AUTHENTICABLE_STATES = ('activated',)