sobjects/notification.py
changeset 9006 e4ea8f9ffa11
parent 9005 63cf580accfc
child 9305 f7a738afc295
equal deleted inserted replaced
9005:63cf580accfc 9006:e4ea8f9ffa11
   290 %(changes)s
   290 %(changes)s
   291 
   291 
   292 url: %(url)s
   292 url: %(url)s
   293 """
   293 """
   294 
   294 
   295     def context(self, **kwargs):
   295     def context(self, changes=(), **kwargs):
   296         context = super(EntityUpdatedNotificationView, self).context(**kwargs)
   296         context = super(EntityUpdatedNotificationView, self).context(**kwargs)
   297         changes = self._cw.transaction_data['changes'][self.cw_rset[0][0]]
       
   298         _ = self._cw._
   297         _ = self._cw._
   299         formatted_changes = []
   298         formatted_changes = []
   300         entity = self.cw_rset.get_entity(self.cw_row or 0, self.cw_col or 0)
   299         entity = self.cw_rset.get_entity(self.cw_row or 0, self.cw_col or 0)
   301         for attr, oldvalue, newvalue in sorted(changes):
   300         for attr, oldvalue, newvalue in sorted(changes):
   302             # check current user has permission to see the attribute
   301             # check current user has permission to see the attribute