equal
deleted
inserted
replaced
1 # copyright 2003-2011 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 |
20 __docformat__ = "restructuredtext en" |
20 __docformat__ = "restructuredtext en" |
21 |
21 |
22 from logilab.common.textutils import normalize_text |
22 from logilab.common.textutils import normalize_text |
23 |
23 |
24 from cubicweb import RegistryNotFound |
24 from cubicweb import RegistryNotFound |
25 from cubicweb.selectors import is_instance |
25 from cubicweb.predicates import is_instance |
26 from cubicweb.server import hook |
26 from cubicweb.server import hook |
27 from cubicweb.sobjects.supervising import SupervisionMailOp |
27 from cubicweb.sobjects.supervising import SupervisionMailOp |
28 |
28 |
29 class RenderAndSendNotificationView(hook.Operation): |
29 class RenderAndSendNotificationView(hook.Operation): |
30 """delay rendering of notification view until precommit""" |
30 """delay rendering of notification view until precommit""" |