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