remove 2.5 construction
authorSylvain <syt@logilab.fr>
Thu, 14 May 2009 14:51:52 +0200
changeset 1819 7d3e8adcd559
parent 1818 1c0d83acb340
child 1820 43419596b59f
remove 2.5 construction
web/uicfg.py
--- a/web/uicfg.py	Thu May 14 12:52:27 2009 +0200
+++ b/web/uicfg.py	Thu May 14 14:51:52 2009 +0200
@@ -72,7 +72,7 @@
 # primary view configuration ##################################################
 
 def dual_role(role):
-    return 'object' if role == 'subject' else 'subject'
+    return role == 'subject' and 'object' or 'subject'
 
 def card_from_role(card, role):
     if role == 'subject':