summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichr <michr@webhippo.net>2011-09-22 21:50:28 -0700
committermichr <michr@webhippo.net>2011-09-22 21:50:28 -0700
commitabcef328b5bbdb7a8c695e06a5c93ce0d8834275 (patch)
treee3d21b5ffcdf4e8194df12cf79bcbc90f702221d
parent03ce311ef998239bb76c04baa3cdbe76cc3b3fcf (diff)
downloadpyramid-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.py16
-rw-r--r--pyramid/chameleon_zpt.py16
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()