# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1234889157 -3600 # Node ID 99d0b471cc0cb38381150be356c4d8c5f8928621 # Parent d70fb8c9e369db6e9997693056d2ae69bbd87721 update import diff -r d70fb8c9e369 -r 99d0b471cc0c web/views/euser.py --- a/web/views/euser.py Tue Feb 17 17:31:16 2009 +0100 +++ b/web/views/euser.py Tue Feb 17 17:45:57 2009 +0100 @@ -19,8 +19,7 @@ class UserPreferencesEntityAction(Action): id = 'prefs' - __selectors__ = (one_line_rset, - implements('EUser'), + __selectors__ = (one_line_rset, implements('EUser'), match_user_groups('owners', 'managers')) title = _('preferences') diff -r d70fb8c9e369 -r 99d0b471cc0c web/views/magicsearch.py --- a/web/views/magicsearch.py Tue Feb 17 17:31:16 2009 +0100 +++ b/web/views/magicsearch.py Tue Feb 17 17:45:57 2009 +0100 @@ -2,7 +2,7 @@ :organization: Logilab -:copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved. :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr """ @@ -15,7 +15,7 @@ from rql.nodes import Relation from cubicweb import Unauthorized -from cubicweb.common.appobject import Component +from cubicweb.common.view import Component LOGGER = getLogger('cubicweb.magicsearch')