equal
deleted
inserted
replaced
9 _ = unicode |
9 _ = unicode |
10 |
10 |
11 from itertools import repeat |
11 from itertools import repeat |
12 |
12 |
13 from logilab.common.textutils import normalize_text |
13 from logilab.common.textutils import normalize_text |
14 from logilab.common.deprecation import class_renamed, deprecated |
14 from logilab.common.deprecation import class_renamed, class_moved, deprecated |
15 |
15 |
16 from cubicweb.selectors import yes |
16 from cubicweb.selectors import yes |
17 from cubicweb.view import Component |
17 from cubicweb.view import Component |
18 from cubicweb.mail import NotificationView, SkipEmail |
18 from cubicweb.mail import NotificationView, SkipEmail |
19 from cubicweb.server.hook import SendMailOp |
19 from cubicweb.server.hook import SendMailOp |
181 entity = self.cw_rset.get_entity(self.cw_row or 0, self.cw_col or 0) |
181 entity = self.cw_rset.get_entity(self.cw_row or 0, self.cw_col or 0) |
182 return u'%s #%s (%s)' % (self._cw.__('Updated %s' % entity.e_schema), |
182 return u'%s #%s (%s)' % (self._cw.__('Updated %s' % entity.e_schema), |
183 entity.eid, self.user_data['login']) |
183 entity.eid, self.user_data['login']) |
184 |
184 |
185 |
185 |
186 from logilab.common.deprecation import class_renamed, class_moved, deprecated |
|
187 from cubicweb.hooks.notification import RenderAndSendNotificationView |
186 from cubicweb.hooks.notification import RenderAndSendNotificationView |
188 from cubicweb.mail import parse_message_id |
187 from cubicweb.mail import parse_message_id |
189 |
188 |
190 NormalizedTextView = class_renamed('NormalizedTextView', ContentAddedView) |
189 NormalizedTextView = class_renamed('NormalizedTextView', ContentAddedView) |
191 RenderAndSendNotificationView = class_moved(RenderAndSendNotificationView) |
190 RenderAndSendNotificationView = class_moved(RenderAndSendNotificationView) |