diff options
| author | michr <michr@webhippo.net> | 2011-09-22 21:50:28 -0700 |
|---|---|---|
| committer | michr <michr@webhippo.net> | 2011-09-22 21:50:28 -0700 |
| commit | abcef328b5bbdb7a8c695e06a5c93ce0d8834275 (patch) | |
| tree | e3d21b5ffcdf4e8194df12cf79bcbc90f702221d | |
| parent | 03ce311ef998239bb76c04baa3cdbe76cc3b3fcf (diff) | |
| download | pyramid-abcef328b5bbdb7a8c695e06a5c93ce0d8834275.tar.gz pyramid-abcef328b5bbdb7a8c695e06a5c93ce0d8834275.tar.bz2 pyramid-abcef328b5bbdb7a8c695e06a5c93ce0d8834275.zip | |
fix up warning rendering in chameleon.zpt ... a drop in a bucket
| -rw-r--r-- | pyramid/chameleon_text.py | 16 | ||||
| -rw-r--r-- | pyramid/chameleon_zpt.py | 16 |
2 files changed, 24 insertions, 8 deletions
diff --git a/pyramid/chameleon_text.py b/pyramid/chameleon_text.py index b687ecda9..676985853 100644 --- a/pyramid/chameleon_text.py +++ b/pyramid/chameleon_text.py @@ -57,7 +57,9 @@ def get_renderer(path): package-relative path, an absolute path, or a :term:`asset specification`. - .. warning:: This API is deprecated in :app:`Pyramid` 1.0. Use + .. warning:: + + This API is deprecated in :app:`Pyramid` 1.0. Use :func:`pyramid.renderers.get_renderer` instead. """ package = caller_package() @@ -75,7 +77,9 @@ def get_template(path): The ``path`` argument may be a package-relative path, an absolute path, or a :term:`asset specification`. - .. warning:: This API is deprecated in :app:`Pyramid` 1.0. Use + .. warning:: + + This API is deprecated in :app:`Pyramid` 1.0. Use the ``implementation()`` method of a template renderer retrieved via :func:`pyramid.renderers.get_renderer` instead. """ @@ -97,7 +101,9 @@ def render_template(path, **kw): names to the template, and so may be used within the template itself. Returns a string. - .. warning:: This API is deprecated in :app:`Pyramid` 1.0. Use + .. warning:: + + This API is deprecated in :app:`Pyramid` 1.0. Use :func:`pyramid.renderers.render` instead. """ package = caller_package() @@ -119,7 +125,9 @@ def render_template_to_response(path, **kw): itself. Returns a :term:`Response` object with the body as the template result. - .. warning:: This API is deprecated in :app:`Pyramid` 1.0. Use + .. warning:: + + This API is deprecated in :app:`Pyramid` 1.0. Use :func:`pyramid.renderers.render_to_response` instead. """ package = caller_package() diff --git a/pyramid/chameleon_zpt.py b/pyramid/chameleon_zpt.py index cfa37a65f..ca96d9356 100644 --- a/pyramid/chameleon_zpt.py +++ b/pyramid/chameleon_zpt.py @@ -56,7 +56,9 @@ def get_renderer(path): package-relative path, an absolute path, or a :term:`asset specification`. - .. warning:: This API is deprecated in :app:`Pyramid` 1.0. Use + .. warning:: + + This API is deprecated in :app:`Pyramid` 1.0. Use :func:`pyramid.renderers.get_renderer` instead. """ package = caller_package() @@ -74,7 +76,9 @@ def get_template(path): The ``path`` argument may be a package-relative path, an absolute path, or a :term:`asset specification`. - .. warning:: This API is deprecated in :app:`Pyramid` 1.0. Use + .. warning:: + + This API is deprecated in :app:`Pyramid` 1.0. Use the ``implementation()`` method of a template renderer retrieved via :func:`pyramid.renderers.get_renderer` instead. """ @@ -96,7 +100,9 @@ def render_template(path, **kw): names to the template, and so may be used within the template itself. Returns a string. - .. warning:: This API is deprecated in :app:`Pyramid` 1.0. Use + .. warning:: + + This API is deprecated in :app:`Pyramid` 1.0. Use :func:`pyramid.renderers.render` instead. """ package = caller_package() @@ -118,7 +124,9 @@ def render_template_to_response(path, **kw): itself. Returns a :term:`Response` object with the body as the template result. - .. warning:: This API is deprecated in :app:`Pyramid` 1.0. Use + .. warning:: + + This API is deprecated in :app:`Pyramid` 1.0. Use :func:`pyramid.renderers.render_to_response` instead. """ package = caller_package() |
