# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1234870453 -3600 # Node ID ab6e15854f8cbc970415602cb25b85d89914e1db # Parent 75b4c661f71baa2b9812b4d8afbe8cc9fb495986 kill AddEntityAction diff -r 75b4c661f71b -r ab6e15854f8c 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.