Store all unread messages. If the backend has yet to be iterated, store previously stored messages again. Otherwise, only store messages added after the last iteration.
(self, response)
| 126 | message._prepare() |
| 127 | |
| 128 | def update(self, response): |
| 129 | """ |
| 130 | Store all unread messages. |
| 131 | |
| 132 | If the backend has yet to be iterated, store previously stored messages |
| 133 | again. Otherwise, only store messages added after the last iteration. |
| 134 | """ |
| 135 | self._prepare_messages(self._queued_messages) |
| 136 | if self.used: |
| 137 | return self._store(self._queued_messages, response) |
| 138 | elif self.added_new: |
| 139 | messages = self._loaded_messages + self._queued_messages |
| 140 | return self._store(messages, response) |
| 141 | |
| 142 | def add(self, level, message, extra_tags=""): |
| 143 | """ |
no test coverage detected