Permalink
Browse files

comment

  • Loading branch information...
1 parent 0b0b206 commit 0eaa60f8bd4c0e76ec35fd9cd25b0f90fb9019e0 @mcdonc mcdonc committed Jul 21, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 pyramid/renderers.py
View
@@ -412,6 +412,8 @@ def render_to_response(self, value, system_values, request=None):
return self._make_response(result, request)
def _make_response(self, result, request):
+ # broken out of render_to_response as a separate method for testing
+ # purposes
response = getattr(request, 'response', None)
if response is None:
# request is None or request is not a pyramid.response.Response

0 comments on commit 0eaa60f

Please sign in to comment.