fix selector tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 18 Feb 2009 15:16:54 +0100
branchtls-sprint
changeset 792 685f020f855f
parent 791 00f7f6adcf91
child 793 06b05dce4831
fix selector
web/views/eproperties.py
--- a/web/views/eproperties.py	Wed Feb 18 15:16:45 2009 +0100
+++ b/web/views/eproperties.py	Wed Feb 18 15:16:54 2009 +0100
@@ -221,12 +221,10 @@
 class EPropertiesForm(SystemEPropertiesForm):
     id = 'epropertiesform'
     __select__ = (
-        implements('EUser'),
         # we don't want guests to be able to come here
-        match_user_groups('users', 'managers'), 
-        chainfirst(none_rset),
-                   chainall(one_line_rset, is_user_prefs),
-                   chainall(one_line_rset, match_user_groups('managers'))
+        match_user_groups('users', 'managers') &
+        (none_rset | ((one_line_rset() & is_user_prefs) &
+                      (one_line_rset() & match_user_groups('managers'))))
         )
     
     title = _('preferences')