summaryrefslogtreecommitdiff
path: root/repoze/bfg/template.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-05-01 10:26:57 +0000
committerChris McDonough <chrism@agendaless.com>2009-05-01 10:26:57 +0000
commitba9b0e647bff1bf0c437ab204ddf11783ed698f8 (patch)
tree1952ebfdc40ae71a3bc54eb10a92a0fe1e8273ec /repoze/bfg/template.py
parentbc0698e1ac67106346d8c006bddcb38370f7c16b (diff)
downloadpyramid-ba9b0e647bff1bf0c437ab204ddf11783ed698f8.tar.gz
pyramid-ba9b0e647bff1bf0c437ab204ddf11783ed698f8.tar.bz2
pyramid-ba9b0e647bff1bf0c437ab204ddf11783ed698f8.zip
Merge "c-free" branch to trunk.
Diffstat (limited to 'repoze/bfg/template.py')
-rw-r--r--repoze/bfg/template.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/repoze/bfg/template.py b/repoze/bfg/template.py
index 68a7f34d1..ad6d50a44 100644
--- a/repoze/bfg/template.py
+++ b/repoze/bfg/template.py
@@ -2,23 +2,19 @@
# compatibility; there are no plans to make this module itself go
# away, but the ``get_template``, ``render_template``, and
# ``render_template_to_response`` APIs should be imported from
-# ``repoze.bfg.chameleon_zpt`` in the future for optimum correctness,
-# while the ``render_transform`` and ``render_transform_to_response``
-# APIs should be imported from ``repoze.bfg.xslt``.
+# ``repoze.bfg.chameleon_zpt`` in the future for optimum correctness.
+# Two other functions named ``render_transform`` and
+# ``render_transform_to_response`` APIs used to be here for XSLT
+# support; those no longer exist here; you need to install and use the
+# ``repoze.bfg.xslt`` package.
from zope.deprecation import deprecated
from repoze.bfg.chameleon_zpt import get_template
from repoze.bfg.chameleon_zpt import render_template
from repoze.bfg.chameleon_zpt import render_template_to_response
-from repoze.bfg.xslt import render_transform
-from repoze.bfg.xslt import render_transform_to_response
for name in ('get_template', 'render_template', 'render_template_to_response'):
deprecated(name,
('repoze.bfg.template.%s should now be imported as '
'repoze.bfg.chameleon_zpt.%s' % (name, name)))
-for name in ('render_transform', 'render_transform_to_response'):
- deprecated(name,
- ('repoze.bfg.template.%s should now be imported as '
- 'repoze.bfg.xslt.%s' % (name, name)))