equal
deleted
inserted
replaced
70 def relation_mode(cls, rtype, etype, targettype, role='subject'): |
70 def relation_mode(cls, rtype, etype, targettype, role='subject'): |
71 """return a string telling if the given relation is usually created |
71 """return a string telling if the given relation is usually created |
72 to a new entity ('create' mode) or to an existant entity ('link' mode) |
72 to a new entity ('create' mode) or to an existant entity ('link' mode) |
73 """ |
73 """ |
74 if role == 'subject': |
74 if role == 'subject': |
75 return cls.rmode.rtag(rtype, role, etype, targettype) |
75 return cls.rmode.get(rtype, role, etype, targettype) |
76 return cls.rmode.rtag(rtype, role, targettype, etype) |
76 return cls.rmode.get(rtype, role, targettype, etype) |
77 |
77 |
78 |
78 |
79 def call(self, view=None, **kwargs): |
79 def call(self, view=None, **kwargs): |
80 _ = self.req._ |
80 _ = self.req._ |
81 title = _(self.title) |
81 title = _(self.title) |