Michael Merickel
2011-06-21 fe5e070166d98a7be35b72a4f66177c0222b34b3
Fixed a bw-compat issue with PyramidTemplate being moved.
1 files modified
8 ■■■■■ changed files
pyramid/paster.py 8 ●●●●● patch | view | raw | blame | history
pyramid/paster.py
@@ -2,11 +2,19 @@
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``"""