I've looked at the code and am pretty sure the answer is no, but a bunch of subclasses are used here, so I think it's best to ask -- Will render_to_response ever return something that is not `pyramid.response.Response`?
I have a small library that will act on the output of render_to_response; I am trying to catch edge cases where it is improperly invoked and a developer passes in a normal dict (which would be rendered via view_config template or json renderer) instead of the expected output of render_to_response.
On Oct 12, 2020, at 13:48, 'Jonathan Vanasco' via pylons-discuss <pylons-...@googlegroups.com> wrote:
I've looked at the code and am pretty sure the answer is no, but a bunch of subclasses are used here, so I think it's best to ask -- Will render_to_response ever return something that is not `pyramid.response.Response`?
I have a small library that will act on the output of render_to_response; I am trying to catch edge cases where it is improperly invoked and a developer passes in a normal dict (which would be rendered via view_config template or json renderer) instead of the expected output of render_to_response.
--
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 pylons-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/32fddda9-dba9-4c84-a26a-c0a28a6953dbn%40googlegroups.com.