equal
deleted
inserted
replaced
4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. |
4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. |
5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
7 """ |
7 """ |
8 __docformat__ = "restructuredtext en" |
8 __docformat__ = "restructuredtext en" |
|
9 _ = unicode |
9 |
10 |
10 from base64 import b64encode, b64decode |
11 from base64 import b64encode, b64decode |
11 from itertools import repeat |
12 from itertools import repeat |
12 from time import time |
13 from time import time |
13 try: |
14 try: |
26 |
27 |
27 from cubicweb.server.pool import PreCommitOperation |
28 from cubicweb.server.pool import PreCommitOperation |
28 from cubicweb.server.hookhelper import SendMailOp |
29 from cubicweb.server.hookhelper import SendMailOp |
29 from cubicweb.server.hooksmanager import Hook |
30 from cubicweb.server.hooksmanager import Hook |
30 |
31 |
31 _ = unicode |
|
32 |
32 |
33 class RecipientsFinder(Component): |
33 class RecipientsFinder(Component): |
34 """this component is responsible to find recipients of a notification |
34 """this component is responsible to find recipients of a notification |
35 |
35 |
36 by default user's with their email set are notified if any, else the default |
36 by default user's with their email set are notified if any, else the default |