web/views/boxes.py
branchtls-sprint
changeset 1732 e812ba9499ac
parent 1726 08918409815e
child 1739 78b0819162a8
--- a/web/views/boxes.py	Mon May 11 17:38:55 2009 +0200
+++ b/web/views/boxes.py	Mon May 11 17:39:07 2009 +0200
@@ -71,10 +71,7 @@
         """return a string telling if the given relation is usually created
         to a new entity ('create' mode) or to an existant entity ('link' mode)
         """
-        if role == 'subject':
-            return cls.rmode.get(rtype, role, etype, targettype)
-        return cls.rmode.get(rtype, role, targettype, etype)
-
+        return cls.rmode.etype_get(etype, rtype, role, targettype)
 
     def call(self, view=None, **kwargs):
         _ = self.req._