sobjects/notification.py
changeset 3163 edfe43ceaa35
parent 3083 3084bc9ccc64
parent 3110 757d36162235
child 3377 dd9d292b6a6d
equal deleted inserted replaced
3090:8184bec7414d 3163:edfe43ceaa35
   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