Mercurial > libervia-backend
comparison libervia/backend/core/main.py @ 4130:02f0adc745c6
core: notifications implementation, first draft:
add a new table for notifications, and methods/bridge methods to manipulate them.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 16 Oct 2023 17:29:31 +0200 |
parents | 10b6ad569157 |
children | 3b95704ab777 |
comparison
equal
deleted
inserted
replaced
4129:51744ad00a42 | 4130:02f0adc745c6 |
---|---|
219 self.bridge.register_method("namespaces_get", self.get_namespaces) | 219 self.bridge.register_method("namespaces_get", self.get_namespaces) |
220 self.bridge.register_method("image_check", self._image_check) | 220 self.bridge.register_method("image_check", self._image_check) |
221 self.bridge.register_method("image_resize", self._image_resize) | 221 self.bridge.register_method("image_resize", self._image_resize) |
222 self.bridge.register_method("image_generate_preview", self._image_generate_preview) | 222 self.bridge.register_method("image_generate_preview", self._image_generate_preview) |
223 self.bridge.register_method("image_convert", self._image_convert) | 223 self.bridge.register_method("image_convert", self._image_convert) |
224 self.bridge.register_method("notification_add", self.memory._add_notification) | |
225 self.bridge.register_method("notifications_get", self.memory._get_notifications) | |
226 self.bridge.register_method("notification_delete", self.memory._delete_notification) | |
227 self.bridge.register_method("notifications_expired_clean", self.memory._notifications_expired_clean) | |
224 | 228 |
225 | 229 |
226 await self.memory.initialise() | 230 await self.memory.initialise() |
227 self.common_cache = cache.Cache(self, None) | 231 self.common_cache = cache.Cache(self, None) |
228 log.info(_("Memory initialised")) | 232 log.info(_("Memory initialised")) |