app/soc/views/models/notification.py
changeset 2361 40b0c25a5793
parent 2164 94e498e3dd44
child 2748 7fbc98f3adde
equal deleted inserted replaced
2360:e389d26949db 2361:40b0c25a5793
   188     if entity.unread:
   188     if entity.unread:
   189       # get the current user
   189       # get the current user
   190       user = user_logic.getForCurrentAccount()
   190       user = user_logic.getForCurrentAccount()
   191       
   191       
   192       # if the message is meant for the user that is reading it
   192       # if the message is meant for the user that is reading it
       
   193       # pylint: disable-msg=E1103
   193       if entity.scope.key() == user.key():
   194       if entity.scope.key() == user.key():
   194         # mark the entity as read
   195         # mark the entity as read
   195         self._logic.updateEntityProperties(entity, {'unread' : False} )
   196         self._logic.updateEntityProperties(entity, {'unread' : False} )
   196 
   197 
   197     context['entity_type_url'] = self._params['url_name']
   198     context['entity_type_url'] = self._params['url_name']