--- 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')
--- 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')