sort on EUser.login/EGroup.name in vocabulary tls-sprint
authorsylvain.thenault@logilab.fr
Tue, 14 Apr 2009 18:03:11 +0200
branchtls-sprint
changeset 1343 659d3dc42e68
parent 1342 4273e44852cb
child 1344 930020cb134b
sort on EUser.login/EGroup.name in vocabulary
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',)