author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Thu, 30 Sep 2010 15:00:40 +0200 | |
changeset 6370 | 8c3d6f739fa3 |
parent 6142 | 8bc6eac1fac1 |
child 6582 | 8eb7883b4223 |
permissions | -rw-r--r-- |
5421
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4843
diff
changeset
|
1 |
# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4843
diff
changeset
|
2 |
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4843
diff
changeset
|
3 |
# |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4843
diff
changeset
|
4 |
# This file is part of CubicWeb. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4843
diff
changeset
|
5 |
# |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4843
diff
changeset
|
6 |
# CubicWeb is free software: you can redistribute it and/or modify it under the |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4843
diff
changeset
|
7 |
# terms of the GNU Lesser General Public License as published by the Free |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4843
diff
changeset
|
8 |
# Software Foundation, either version 2.1 of the License, or (at your option) |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4843
diff
changeset
|
9 |
# any later version. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4843
diff
changeset
|
10 |
# |
5424
8ecbcbff9777
replace logilab-common by CubicWeb in disclaimer
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5421
diff
changeset
|
11 |
# CubicWeb is distributed in the hope that it will be useful, but WITHOUT |
5421
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4843
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4843
diff
changeset
|
13 |
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4843
diff
changeset
|
14 |
# details. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4843
diff
changeset
|
15 |
# |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4843
diff
changeset
|
16 |
# You should have received a copy of the GNU Lesser General Public License along |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4843
diff
changeset
|
17 |
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
6142
8bc6eac1fac1
[session] cleanup hook / operation / entity edition api
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5424
diff
changeset
|
18 |
"""some hooks and views to handle supervising of any data changes""" |
0 | 19 |
|
20 |
__docformat__ = "restructuredtext en" |
|
21 |
||
22 |
from cubicweb import UnknownEid |
|
684 | 23 |
from cubicweb.selectors import none_rset |
2639
5c926026d5e7
R import to avoid warning
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2234
diff
changeset
|
24 |
from cubicweb.schema import display_name |
984 | 25 |
from cubicweb.view import Component |
4023
eae23c40627a
drop common subpackage
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
3430
diff
changeset
|
26 |
from cubicweb.mail import format_mail |
3430
e6d50513936c
[api] use cw_* in supervising
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3429
diff
changeset
|
27 |
from cubicweb.server.hook import SendMailOp |
0 | 28 |
|
29 |
||
30 |
def filter_changes(changes): |
|
31 |
""" |
|
32 |
* when an entity has been deleted: |
|
33 |
* don't show deletion of its relations |
|
34 |
* don't show related TrInfo deletion if any |
|
35 |
* when an entity has been added don't show owned_by relation addition |
|
36 |
* don't show new TrInfo entities if any |
|
37 |
""" |
|
38 |
# first build an index of changes |
|
39 |
index = {} |
|
40 |
added, deleted = set(), set() |
|
41 |
for change in changes[:]: |
|
42 |
event, changedescr = change |
|
43 |
if event == 'add_entity': |
|
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
44 |
entity = changedescr.entity |
0 | 45 |
added.add(entity.eid) |
46 |
if entity.e_schema == 'TrInfo': |
|
47 |
changes.remove(change) |
|
2920
64322aa83a1d
start a new workflow engine
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2650
diff
changeset
|
48 |
event = 'change_state' |
64322aa83a1d
start a new workflow engine
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2650
diff
changeset
|
49 |
change = (event, |
64322aa83a1d
start a new workflow engine
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2650
diff
changeset
|
50 |
(entity.wf_info_for[0], |
64322aa83a1d
start a new workflow engine
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2650
diff
changeset
|
51 |
entity.from_state[0], entity.to_state[0])) |
64322aa83a1d
start a new workflow engine
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2650
diff
changeset
|
52 |
changes.append(change) |
0 | 53 |
elif event == 'delete_entity': |
54 |
deleted.add(changedescr[0]) |
|
55 |
index.setdefault(event, set()).add(change) |
|
2920
64322aa83a1d
start a new workflow engine
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2650
diff
changeset
|
56 |
for key in ('delete_relation', 'add_relation'): |
64322aa83a1d
start a new workflow engine
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2650
diff
changeset
|
57 |
for change in index.get(key, {}).copy(): |
2968
0e3460341023
somewhat painful backport of 3.5 branch, should mostly be ok
Sylvain Thénault <sylvain.thenault@logilab.fr>
diff
changeset
|
58 |
if change[1].rtype == 'in_state': |
2920
64322aa83a1d
start a new workflow engine
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2650
diff
changeset
|
59 |
index[key].remove(change) |
0 | 60 |
# filter changes |
61 |
for eid in added: |
|
62 |
try: |
|
63 |
for change in index['add_relation'].copy(): |
|
64 |
changedescr = change[1] |
|
65 |
# skip meta-relations which are set automatically |
|
66 |
# XXX generate list below using rtags (category = 'generated') |
|
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
67 |
if changedescr.rtype in ('created_by', 'owned_by', 'is', 'is_instance_of', |
2920
64322aa83a1d
start a new workflow engine
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2650
diff
changeset
|
68 |
'from_state', 'to_state', 'by_transition', |
64322aa83a1d
start a new workflow engine
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2650
diff
changeset
|
69 |
'wf_info_for') \ |
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
70 |
and changedescr.eidfrom == eid: |
0 | 71 |
index['add_relation'].remove(change) |
72 |
except KeyError: |
|
73 |
break |
|
74 |
for eid in deleted: |
|
75 |
try: |
|
76 |
for change in index['delete_relation'].copy(): |
|
3429
531395cb5a22
[supervising] fix delete_relation() prototype and changedescr usage
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3377
diff
changeset
|
77 |
if change[1].eidfrom == eid: |
0 | 78 |
index['delete_relation'].remove(change) |
3429
531395cb5a22
[supervising] fix delete_relation() prototype and changedescr usage
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3377
diff
changeset
|
79 |
elif change[1].eidto == eid: |
0 | 80 |
index['delete_relation'].remove(change) |
3429
531395cb5a22
[supervising] fix delete_relation() prototype and changedescr usage
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3377
diff
changeset
|
81 |
if change[1].rtype == 'wf_info_for': |
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
82 |
for change_ in index['delete_entity'].copy(): |
3429
531395cb5a22
[supervising] fix delete_relation() prototype and changedescr usage
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3377
diff
changeset
|
83 |
if change_[1].eidfrom == change[1].eidfrom: |
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
84 |
index['delete_entity'].remove(change_) |
0 | 85 |
except KeyError: |
86 |
break |
|
87 |
for change in changes: |
|
88 |
event, changedescr = change |
|
89 |
if change in index[event]: |
|
90 |
yield change |
|
91 |
||
92 |
||
661
4f61eb8a96b7
properly kill/depreciate component base class, only keep Component
sylvain.thenault@logilab.fr
parents:
655
diff
changeset
|
93 |
class SupervisionEmailView(Component): |
0 | 94 |
"""view implementing the email API for data changes supervision notification |
95 |
""" |
|
3377
dd9d292b6a6d
use __regid__ instead of id on appobject classes
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
3163
diff
changeset
|
96 |
__regid__ = 'supervision_notif' |
730 | 97 |
__select__ = none_rset() |
0 | 98 |
|
99 |
def recipients(self): |
|
3430
e6d50513936c
[api] use cw_* in supervising
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3429
diff
changeset
|
100 |
return self._cw.vreg.config['supervising-addrs'] |
1723 | 101 |
|
0 | 102 |
def subject(self): |
3430
e6d50513936c
[api] use cw_* in supervising
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3429
diff
changeset
|
103 |
return self._cw._('[%s supervision] changes summary') % self._cw.vreg.config.appid |
1723 | 104 |
|
0 | 105 |
def call(self, changes): |
4835
13b0b96d7982
[repo] enhanced security handling: deprecates unsafe_execute, in favor of explicit read/write security control using the `enabled_security` context manager. Also code executed on the repository side is now unsafe by default.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4252
diff
changeset
|
106 |
user = self._cw.user |
3430
e6d50513936c
[api] use cw_* in supervising
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3429
diff
changeset
|
107 |
self.w(self._cw._('user %s has made the following change(s):\n\n') |
0 | 108 |
% user.login) |
109 |
for event, changedescr in filter_changes(changes): |
|
110 |
self.w(u'* ') |
|
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
111 |
getattr(self, event)(changedescr) |
0 | 112 |
self.w(u'\n\n') |
113 |
||
114 |
def _entity_context(self, entity): |
|
115 |
return {'eid': entity.eid, |
|
116 |
'etype': entity.dc_type().lower(), |
|
117 |
'title': entity.dc_title()} |
|
1723 | 118 |
|
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
119 |
def add_entity(self, changedescr): |
3430
e6d50513936c
[api] use cw_* in supervising
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3429
diff
changeset
|
120 |
msg = self._cw._('added %(etype)s #%(eid)s (%(title)s)') |
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
121 |
self.w(u'%s\n' % (msg % self._entity_context(changedescr.entity))) |
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
122 |
self.w(u' %s' % changedescr.entity.absolute_url()) |
1723 | 123 |
|
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
124 |
def update_entity(self, changedescr): |
3430
e6d50513936c
[api] use cw_* in supervising
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3429
diff
changeset
|
125 |
msg = self._cw._('updated %(etype)s #%(eid)s (%(title)s)') |
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
126 |
self.w(u'%s\n' % (msg % self._entity_context(changedescr.entity))) |
0 | 127 |
# XXX print changes |
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
128 |
self.w(u' %s' % changedescr.entity.absolute_url()) |
1723 | 129 |
|
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
130 |
def delete_entity(self, (eid, etype, title)): |
3430
e6d50513936c
[api] use cw_* in supervising
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3429
diff
changeset
|
131 |
msg = self._cw._('deleted %(etype)s #%(eid)s (%(title)s)') |
e6d50513936c
[api] use cw_* in supervising
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3429
diff
changeset
|
132 |
etype = display_name(self._cw, etype).lower() |
0 | 133 |
self.w(msg % locals()) |
1723 | 134 |
|
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
135 |
def change_state(self, (entity, fromstate, tostate)): |
3430
e6d50513936c
[api] use cw_* in supervising
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3429
diff
changeset
|
136 |
msg = self._cw._('changed state of %(etype)s #%(eid)s (%(title)s)') |
0 | 137 |
self.w(u'%s\n' % (msg % self._entity_context(entity))) |
1723 | 138 |
self.w(_(' from state %(fromstate)s to state %(tostate)s\n' % |
0 | 139 |
{'fromstate': _(fromstate.name), 'tostate': _(tostate.name)})) |
140 |
self.w(u' %s' % entity.absolute_url()) |
|
1723 | 141 |
|
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
142 |
def _relation_context(self, changedescr): |
4835
13b0b96d7982
[repo] enhanced security handling: deprecates unsafe_execute, in favor of explicit read/write security control using the `enabled_security` context manager. Also code executed on the repository side is now unsafe by default.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4252
diff
changeset
|
143 |
session = self._cw |
0 | 144 |
def describe(eid): |
145 |
try: |
|
4843
5f7363416765
fix hooks control method name + other litle cleanups
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4835
diff
changeset
|
146 |
return session._(session.describe(eid)[0]).lower() |
0 | 147 |
except UnknownEid: |
148 |
# may occurs when an entity has been deleted from an external |
|
149 |
# source and we're cleaning its relation |
|
4843
5f7363416765
fix hooks control method name + other litle cleanups
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4835
diff
changeset
|
150 |
return session._('unknown external entity') |
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
151 |
eidfrom, rtype, eidto = changedescr.eidfrom, changedescr.rtype, changedescr.eidto |
4843
5f7363416765
fix hooks control method name + other litle cleanups
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4835
diff
changeset
|
152 |
return {'rtype': session._(rtype), |
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
153 |
'eidfrom': eidfrom, |
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
154 |
'frometype': describe(eidfrom), |
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
155 |
'eidto': eidto, |
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
156 |
'toetype': describe(eidto)} |
1723 | 157 |
|
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
158 |
def add_relation(self, changedescr): |
3430
e6d50513936c
[api] use cw_* in supervising
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3429
diff
changeset
|
159 |
msg = self._cw._('added relation %(rtype)s from %(frometype)s #%(eidfrom)s to %(toetype)s #%(eidto)s') |
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
160 |
self.w(msg % self._relation_context(changedescr)) |
0 | 161 |
|
3429
531395cb5a22
[supervising] fix delete_relation() prototype and changedescr usage
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3377
diff
changeset
|
162 |
def delete_relation(self, changedescr): |
3430
e6d50513936c
[api] use cw_* in supervising
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
3429
diff
changeset
|
163 |
msg = self._cw._('deleted relation %(rtype)s from %(frometype)s #%(eidfrom)s to %(toetype)s #%(eidto)s') |
2841
107ba1c45227
rewrite hooks in sobjects as new Hook style into hooks sub-package
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2812
diff
changeset
|
164 |
self.w(msg % self._relation_context(changedescr)) |
1723 | 165 |
|
166 |
||
0 | 167 |
class SupervisionMailOp(SendMailOp): |
168 |
"""special send email operation which should be done only once for a bunch |
|
169 |
of changes |
|
170 |
""" |
|
171 |
def _get_view(self): |
|
2650
18aec79ec3a3
R [vreg] important refactoring of the vregistry, moving behaviour to end dictionnary (and so leaving room for more flexibility ; keep bw compat ; update api usage in cw
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2649
diff
changeset
|
172 |
return self.session.vreg['components'].select('supervision_notif', |
18aec79ec3a3
R [vreg] important refactoring of the vregistry, moving behaviour to end dictionnary (and so leaving room for more flexibility ; keep bw compat ; update api usage in cw
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2649
diff
changeset
|
173 |
self.session) |
1723 | 174 |
|
0 | 175 |
def _prepare_email(self): |
176 |
session = self.session |
|
177 |
config = session.vreg.config |
|
178 |
uinfo = {'email': config['sender-addr'], |
|
179 |
'name': config['sender-name']} |
|
180 |
view = self._get_view() |
|
2102
268659907769
finish to update transaction data api
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2101
diff
changeset
|
181 |
content = view.render(changes=session.transaction_data.get('pendingchanges')) |
0 | 182 |
recipients = view.recipients() |
183 |
msg = format_mail(uinfo, recipients, content, view.subject(), config=config) |
|
184 |
self.to_send = [(msg, recipients)] |
|
185 |
||
6142
8bc6eac1fac1
[session] cleanup hook / operation / entity edition api
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5424
diff
changeset
|
186 |
def postcommit_event(self): |
0 | 187 |
self._prepare_email() |
6142
8bc6eac1fac1
[session] cleanup hook / operation / entity edition api
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5424
diff
changeset
|
188 |
SendMailOp.postcommit_event(self) |