diff options
| -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() |
