-
-
Notifications
You must be signed in to change notification settings - Fork 813
Closed
Milestone
Description
Similar problem to #863 - calling datasette.add_message() in a view registered using the register_routes() plugin hook doesn't work, because the code that writes accumulated messages to the ds_messages signed cookie lives in the BaseView class here:
datasette/datasette/views/base.py
Lines 94 to 97 in 28bb1c5
| response = await super().dispatch_request(request, *args, **kwargs) | |
| if self.ds: | |
| self.ds._write_messages_to_response(request, response) | |
| return response |
Reactions are currently unavailable