Skip to content

Commit

Permalink
- The pyramid.paster.PyramidTemplate API was removed. It had been
Browse files Browse the repository at this point in the history
  deprecated since Pyramid 1.1 and issued a warning on import.  If your code
  depended on this, adjust your code to import
  ``pyramid.scaffolds.PyramidTemplate`` instead.
  • Loading branch information
mcdonc committed Sep 9, 2012
1 parent deaf45b commit b274d05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGES.txt
Expand Up @@ -187,6 +187,11 @@ Backwards Incompatibilities
since Pyramid 1.0 and printed a deprecation warning upon its use. Use since Pyramid 1.0 and printed a deprecation warning upon its use. Use
``pyramid.config`` instead. ``pyramid.config`` instead.


- The ``pyramid.paster.PyramidTemplate`` API was removed. It had been
deprecated since Pyramid 1.1 and issued a warning on import. If your code
depended on this, adjust your code to import
``pyramid.scaffolds.PyramidTemplate`` instead.

Dependencies Dependencies
------------ ------------


Expand Down
10 changes: 0 additions & 10 deletions pyramid/paster.py
@@ -1,7 +1,5 @@
import os import os


import zope.deprecation

from paste.deploy import ( from paste.deploy import (
loadapp, loadapp,
appconfig, appconfig,
Expand All @@ -10,14 +8,6 @@
from pyramid.compat import configparser from pyramid.compat import configparser
from logging.config import fileConfig from logging.config import fileConfig
from pyramid.scripting import prepare from pyramid.scripting import prepare
from pyramid.scaffolds import PyramidTemplate # bw compat

PyramidTemplate = PyramidTemplate # pyflakes

zope.deprecation.deprecated(
'PyramidTemplate', ('pyramid.paster.PyramidTemplate was moved to '
'pyramid.scaffolds.PyramidTemplate in Pyramid 1.1'),
)


def get_app(config_uri, name=None, loadapp=loadapp): def get_app(config_uri, name=None, loadapp=loadapp):
""" Return the WSGI application named ``name`` in the PasteDeploy """ Return the WSGI application named ``name`` in the PasteDeploy
Expand Down

0 comments on commit b274d05

Please sign in to comment.