kill AddEntityAction tls-sprint
authorsylvain.thenault@logilab.fr
Tue, 17 Feb 2009 12:34:13 +0100
branchtls-sprint
changeset 651 ab6e15854f8c
parent 650 75b4c661f71b
child 652 603c782dc092
kill AddEntityAction
web/action.py
--- a/web/action.py	Tue Feb 17 12:33:57 2009 +0100
+++ b/web/action.py	Tue Feb 17 12:34:13 2009 +0100
@@ -10,9 +10,8 @@
 from cubicweb.common.appobject import AppRsetObject
 from cubicweb.common.registerers import action_registerer
 from cubicweb.common.selectors import user_can_add_etype, \
-     match_search_state, searchstate_accept_one, \
-     searchstate_accept_one_but_etype
-    
+     match_search_state, searchstate_accept_one
+
 _ = unicode
 
 
@@ -64,18 +63,6 @@
         return self._path
 
 
-class AddEntityAction(Action):
-    """link to the entity creation form. Concrete class must set .etype and
-    may override .vid
-    """
-    __selectors__ = (user_can_add_etype,)
-    vid = 'creation'
-    etype = None
-    
-    def url(self):
-        return self.build_url(vid=self.vid, etype=self.etype)
-
-
 class EntityAction(Action):
     """an action for an entity. By default entity actions are only
     displayable on single entity result if accept match.