equal
deleted
inserted
replaced
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'] |