equal
deleted
inserted
replaced
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') |