web/views/boxes.py
branchtls-sprint
changeset 1726 08918409815e
parent 1721 694f6a50e138
child 1732 e812ba9499ac
--- a/web/views/boxes.py	Mon May 11 12:03:52 2009 +0200
+++ b/web/views/boxes.py	Mon May 11 16:08:53 2009 +0200
@@ -53,7 +53,7 @@
                     else:
                         X, Y = tschema, eschema
                         card = rschema.rproperty(X, Y, 'cardinality')[1]
-                    if not cls.rmode.get(rschema, role, X, Y):
+                    if not cls.rmode.get(X, rschema, Y, role):
                         if card in '?1':
                             # by default, suppose link mode if cardinality doesn't allow
                             # more than one relation