From fe5e070166d98a7be35b72a4f66177c0222b34b3 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Tue, 21 Jun 2011 10:29:11 -0500 Subject: Fixed a bw-compat issue with PyramidTemplate being moved. --- pyramid/paster.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyramid/paster.py b/pyramid/paster.py index 28d3535df..b1f0a6c8b 100644 --- a/pyramid/paster.py +++ b/pyramid/paster.py @@ -2,11 +2,19 @@ import os import sys from code import interact +import zope.deprecation + from paste.deploy import loadapp from paste.script.command import Command from pyramid.scripting import get_root +from pyramid.scaffolds import PyramidTemplate # bw compat +zope.deprecation.deprecated( + 'PyramidTemplate', ('pyramid.paster.PyramidTemplate was moved to ' + 'pyramid.scaffolds.PyramidTemplate in Pyramid 1.1'), +) + def get_app(config_file, name, loadapp=loadapp): """ Return the WSGI application named ``name`` in the PasteDeploy config file ``config_file``""" -- cgit v1.2.3