sobjects/test/data/sobjects/__init__.py
changeset 8190 2a3c1b787688
parent 5877 0c7b7b76a84f
equal deleted inserted replaced
8189:2ee0ef069fa7 8190:2a3c1b787688
     1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     1 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     3 #
     3 #
     4 # This file is part of CubicWeb.
     4 # This file is part of CubicWeb.
     5 #
     5 #
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
    14 # details.
    14 # details.
    15 #
    15 #
    16 # You should have received a copy of the GNU Lesser General Public License along
    16 # You should have received a copy of the GNU Lesser General Public License along
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    18 
    18 
    19 from cubicweb.selectors import is_instance
    19 from cubicweb.predicates import is_instance
    20 from cubicweb.sobjects.notification import StatusChangeMixIn, NotificationView
    20 from cubicweb.sobjects.notification import StatusChangeMixIn, NotificationView
    21 
    21 
    22 class UserStatusChangeView(StatusChangeMixIn, NotificationView):
    22 class UserStatusChangeView(StatusChangeMixIn, NotificationView):
    23     __select__ = NotificationView.__select__ & is_instance('CWUser')
    23     __select__ = NotificationView.__select__ & is_instance('CWUser')