app/soc/views/models/notification.py
changeset 986 e9611a2288ca
parent 970 8b5611d5b053
child 1007 3b66772d21a5
equal deleted inserted replaced
985:f0b02777f403 986:e9611a2288ca
   192       user = user_logic.logic.getForCurrentAccount()
   192       user = user_logic.logic.getForCurrentAccount()
   193       
   193       
   194       # if the message is meant for the user that is reading it
   194       # if the message is meant for the user that is reading it
   195       if entity.scope.key() == user.key():
   195       if entity.scope.key() == user.key():
   196         # mark the entity as read
   196         # mark the entity as read
   197         self._logic.updateModelProperties(entity, {'unread' : False} )
   197         self._logic.updateEntityProperties(entity, {'unread' : False} )
   198 
   198 
   199     context['entity_type_url'] = self._params['url_name']
   199     context['entity_type_url'] = self._params['url_name']
   200     context['entity_suffix'] = self._logic.getKeySuffix(entity)
   200     context['entity_suffix'] = self._logic.getKeySuffix(entity)
   201 
   201 
   202 
   202