use etype_get tls-sprint
authorsylvain.thenault@logilab.fr
Mon, 11 May 2009 17:39:07 +0200
branchtls-sprint
changeset 1732 e812ba9499ac
parent 1731 13f948678a6a
child 1733 94c36d679454
use etype_get
web/views/boxes.py
--- 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._