You can place a view deriver before the view is rendered by the current renderer. Unless you are returning a Response object directly from your view, you’d get the dictionary.
For example, here are the default view derivers that Pyramid includes: https://github.com/Pylons/pyramid/blob/master/pyramid/config/views.py#L1260 <https://github.com/Pylons/pyramid/blob/master/pyramid/config/views.py#L1260> You can install your new view deriver between rendererd_view and mapped_view. This would allow you to return a dictionary from your view, and then you can do with it as you please before passing it off to the rendered_view view deriver. Bert > On Oct 29, 2017, at 22:59, Theron Luhn <[email protected]> wrote: > > My first thought was to use a view deriver, but calling the view outputs a > fully-formed Response object, so that’s a no-go. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/9AF8C124-53A7-4633-B98F-EA5CCFD852FB%400x58.com. For more options, visit https://groups.google.com/d/optout.
