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:
|
response = await super().dispatch_request(request, *args, **kwargs) |
|
if self.ds: |
|
self.ds._write_messages_to_response(request, response) |
|
return response |
Similar problem to #863 - calling
datasette.add_message()in a view registered using theregister_routes()plugin hook doesn't work, because the code that writes accumulated messages to theds_messagessigned cookie lives in theBaseViewclass here:datasette/datasette/views/base.py
Lines 94 to 97 in 28bb1c5