summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-09-16 18:25:31 +0000
committerChris McDonough <chrism@agendaless.com>2009-09-16 18:25:31 +0000
commit470737a5f5a7d86b809b260b9dbc09f266d4b69c (patch)
treea3df44da970fe2e8db956b105acfc228f0319c9c /docs
parent6eca545a5571618bd7498fa68571d8e0e21fecf1 (diff)
downloadpyramid-470737a5f5a7d86b809b260b9dbc09f266d4b69c.tar.gz
pyramid-470737a5f5a7d86b809b260b9dbc09f266d4b69c.tar.bz2
pyramid-470737a5f5a7d86b809b260b9dbc09f266d4b69c.zip
- The ``repoze.bfg.testing.registerDummyRenderer`` API has been
deprecated in favor of ``repoze.bfg.testing.registerTemplateRenderer``. A deprecation warning is *not* issued at import time for the former name; it will exist "forever". - The ``repoze.bfg.templating.renderer_from_cache`` function has been moved to ``repoze.bfg.renderer.template_renderer_factory``. This was never an API, but code in the wild was spotted that used it. A deprecation warning is issued at import time for the former. - Better error message when a wrapper view returns None.
Diffstat (limited to 'docs')
-rw-r--r--docs/api/testing.rst2
-rw-r--r--docs/narr/unittesting.rst6
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/api/testing.rst b/docs/api/testing.rst
index 7870ed1d3..80342e0f6 100644
--- a/docs/api/testing.rst
+++ b/docs/api/testing.rst
@@ -11,7 +11,7 @@
.. autofunction:: registerEventListener
- .. autofunction:: registerDummyRenderer
+ .. autofunction:: registerTemplateRenderer
.. autofunction:: registerView
diff --git a/docs/narr/unittesting.rst b/docs/narr/unittesting.rst
index 22a36318a..064be4739 100644
--- a/docs/narr/unittesting.rst
+++ b/docs/narr/unittesting.rst
@@ -57,7 +57,7 @@ unittest TestCase that used the testing API.
def test_view_fn_not_submitted(self):
from my.package import view_fn
- renderer = testing.registerDummyRenderer('templates/show.pt')
+ renderer = testing.registerTemplateRenderer('templates/show.pt')
context = testing.DummyModel()
request = testing.DummyRequest()
response = view_fn(context, request)
@@ -65,7 +65,7 @@ unittest TestCase that used the testing API.
def test_view_fn_submitted(self):
from my.package import view_fn
- renderer = testing.registerDummyRenderer('templates/submitted.pt')
+ renderer = testing.registerTemplateRenderer('templates/submitted.pt')
context = testing.DummyModel()
request = testing.DummyRequest()
request.params['say'] = 'Yo'
@@ -81,7 +81,7 @@ The first test method, ``test_view_fn_not_submitted`` tests the
``view_fn`` function in the case that no "form" values (represented by
request.params) have been submitted. Its first line registers a
"dummy template renderer" named ``templates/show.pt`` via the
-``registerDummyRenderer`` function (a ``repoze.bfg.testing`` API);
+``registerTemplateRenderer`` function (a ``repoze.bfg.testing`` API);
this function returns a DummyTemplateRenderer instance which we hang
on to for later. We then create a ``DummyRequest`` object (it
simulates a WebOb request object), and we create a ``DummyModel``