drop LinToEntityAction2, only used by the comment cube tls-sprint
authorsylvain.thenault@logilab.fr
Tue, 17 Feb 2009 09:58:47 +0100
branchtls-sprint
changeset 648 a89ba1054cb2
parent 647 49bb57a9606b
child 649 e5956e9ebef1
drop LinToEntityAction2, only used by the comment cube
web/action.py
--- a/web/action.py	Mon Feb 16 21:06:06 2009 +0100
+++ b/web/action.py	Tue Feb 17 09:58:47 2009 +0100
@@ -108,16 +108,4 @@
                               __linkto=linkto,
                               __redirectpath=current_entity.rest_path(), # should not be url quoted!
                               __redirectvid=self.req.form.get('__redirectvid', ''))
-
-
-class LinkToEntityAction2(LinkToEntityAction):
-    """LinkToEntity action where the action is not usable on the same
-    entity's type as the one refered by the .etype attribute
-    """
-    def my_selector(cls, req, rset, row=None, col=0, **kwargs):
-        return chainall(match_search_state('normal'),
-                        but_etype, one_line_rset, accept,
-                        relation_possible(cls.rtype, role(cls), cls.etype),
-                        may_add_relation(cls.rtype, role(cls)))
-    __selectors__ = my_selector,