web/uicfg.py
changeset 1819 7d3e8adcd559
parent 1797 c2a80130b06d
child 1849 1901fa97f521
--- 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':