equal
deleted
inserted
replaced
113 return super(ContentAddedView, self).context(content=content, **kwargs) |
113 return super(ContentAddedView, self).context(content=content, **kwargs) |
114 |
114 |
115 def subject(self): |
115 def subject(self): |
116 entity = self.rset.get_entity(self.row or 0, self.col or 0) |
116 entity = self.rset.get_entity(self.row or 0, self.col or 0) |
117 return u'%s #%s (%s)' % (self.req.__('New %s' % entity.e_schema), |
117 return u'%s #%s (%s)' % (self.req.__('New %s' % entity.e_schema), |
118 entity.eid, self.user_login()) |
118 entity.eid, self.user_data['login']) |
119 |
119 |
120 |
120 |
121 from logilab.common.deprecation import class_renamed, class_moved, deprecated |
121 from logilab.common.deprecation import class_renamed, class_moved, deprecated |
122 from cubicweb.hooks.notification import RenderAndSendNotificationView |
122 from cubicweb.hooks.notification import RenderAndSendNotificationView |
123 from cubicweb.common.mail import parse_message_id |
123 from cubicweb.common.mail import parse_message_id |