diff options
| author | Carlos de la Guardia <cguardia@yahoo.com> | 2011-08-05 20:31:30 -0500 |
|---|---|---|
| committer | Carlos de la Guardia <cguardia@yahoo.com> | 2011-08-05 20:31:30 -0500 |
| commit | 5083c3bb7445055944bd3a607d5f2f8b61e1c663 (patch) | |
| tree | 4f76b8503f54e1c9becbd6e169209562ed67d10f | |
| parent | fc406adb99573cc99ef388693c909d5d2de16e19 (diff) | |
| download | pyramid-5083c3bb7445055944bd3a607d5f2f8b61e1c663.tar.gz pyramid-5083c3bb7445055944bd3a607d5f2f8b61e1c663.tar.bz2 pyramid-5083c3bb7445055944bd3a607d5f2f8b61e1c663.zip | |
Add small explanation about omitting request parameter in render_to_response as requested on issue 248
| -rw-r--r-- | pyramid/renderers.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pyramid/renderers.py b/pyramid/renderers.py index c718cf1bb..a06067c97 100644 --- a/pyramid/renderers.py +++ b/pyramid/renderers.py @@ -98,7 +98,9 @@ def render_to_response(renderer_name, value, request=None, package=None): Supply a ``request`` parameter in order to provide the renderer with the most correct 'system' values (``request`` and ``context`` - in particular). + in particular). Keep in mind that if the ``request`` parameter is + not passed in, any changes to ``request.response`` attributes made + before calling this function will be ignored. """ try: |
