summaryrefslogtreecommitdiff
path: root/repoze/bfg/template.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-05-27 23:37:32 +0000
committerChris McDonough <chrism@agendaless.com>2009-05-27 23:37:32 +0000
commit54a0cadf6006b07e4c3cd4ffdcb1e0e6fa53b600 (patch)
tree32961ffe39dbe4cc95a94e92702c9c7b9f26777d /repoze/bfg/template.py
parent220628883d18a5e4009db6eda1310c4de16bbb9a (diff)
downloadpyramid-54a0cadf6006b07e4c3cd4ffdcb1e0e6fa53b600.tar.gz
pyramid-54a0cadf6006b07e4c3cd4ffdcb1e0e6fa53b600.tar.bz2
pyramid-54a0cadf6006b07e4c3cd4ffdcb1e0e6fa53b600.zip
- Remove ``repoze.bfg.template`` module. All imports from this
package have been deprecated since version 0.3.8. Instead, import ``get_template``, ``render_template``, and ``render_template_to_response`` from the ``repoze.bfg.chameleon_zpt``module.
Diffstat (limited to 'repoze/bfg/template.py')
-rw-r--r--repoze/bfg/template.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/repoze/bfg/template.py b/repoze/bfg/template.py
deleted file mode 100644
index ad6d50a44..000000000
--- a/repoze/bfg/template.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# The definitions in this module are import aliases for backwards
-# 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.
-# 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
-
-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)))
-