--- 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._