# HG changeset patch # User Sylvain Thénault # Date 1254146838 -7200 # Node ID aadeab85af7c85c3d26d324d0ae8a78598cfd990 # Parent 06bced8edddff8be0e4ac5a9a15d97f16d6697d6 bad merge diff -r 06bced8edddf -r aadeab85af7c web/views/actions.py --- a/web/views/actions.py Mon Sep 28 12:37:01 2009 +0200 +++ b/web/views/actions.py Mon Sep 28 16:07:18 2009 +0200 @@ -29,7 +29,7 @@ def score_entity(self, entity): # if user has no update right but it can modify some relation, # display action anyway - form = self._cw.vreg['forms'].select('edition', self._cw, + form = entity._cw.vreg['forms'].select('edition', entity._cw, entity=entity) for dummy in form.editable_relations(): return 1 @@ -233,7 +233,7 @@ class AddRelatedActions(action.Action): """fill 'addrelated' sub-menu of the actions box""" __regid__ = 'addrelated' - __select__ = Action.__select__ & one_line_rset() & non_final_entity() + __select__ = action.Action.__select__ & one_line_rset() & non_final_entity() submenu = _('addrelated') order = 20 @@ -297,7 +297,7 @@ # logged user actions ######################################################### -class UserPreferencesAction(Action): +class UserPreferencesAction(action.Action): __regid__ = 'myprefs' __select__ = authenticated_user() @@ -309,7 +309,7 @@ return self._cw.build_url(self.__regid__) -class UserInfoAction(Action): +class UserInfoAction(action.Action): __regid__ = 'myinfos' __select__ = authenticated_user() @@ -321,7 +321,7 @@ return self._cw.build_url('cwuser/%s'%self._cw.user.login, vid='edition') -class LogoutAction(Action): +class LogoutAction(action.Action): __regid__ = 'logout' __select__ = authenticated_user() @@ -335,7 +335,7 @@ # site actions ################################################################ -class ManagersAction(Action): +class ManagersAction(action.Action): __abstract__ = True __select__ = match_user_groups('managers') @@ -363,7 +363,9 @@ order = 30 -class PoweredByAction(Action): +# footer actions ############################################################### + +class PoweredByAction(action.Action): id = 'poweredby' __select__ = yes() @@ -375,10 +377,6 @@ return 'http://www.cubicweb.org' -from logilab.common.deprecation import class_moved -from cubicweb.web.views.bookmark import FollowAction -FollowAction = class_moved(FollowAction) - ## default actions ui configuration ########################################### addmenu = uicfg.actionbox_appearsin_addmenu