Chris McDonough
2011-09-07 d00fa00e0ee116cce61f157b24b3924d38a352a5
prep for 1.2a6
18 files modified
63 ■■■■■ changed files
CHANGES.txt 16 ●●●●● patch | view | raw | blame | history
docs/conf.py 2 ●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/authorization/tutorial/__init__.py 2 ●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/basiclayout/tutorial/__init__.py 2 ●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/models/tutorial/__init__.py 2 ●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/tests/tutorial/__init__.py 2 ●●● patch | view | raw | blame | history
docs/tutorials/wiki/src/views/tutorial/__init__.py 2 ●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/authorization/tutorial/__init__.py 2 ●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/basiclayout/tutorial/__init__.py 2 ●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/models/tutorial/__init__.py 2 ●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/tests/tutorial/__init__.py 2 ●●● patch | view | raw | blame | history
docs/tutorials/wiki2/src/views/tutorial/__init__.py 2 ●●● patch | view | raw | blame | history
docs/whatsnew-1.2.rst 15 ●●●●● patch | view | raw | blame | history
pyramid/scaffolds/alchemy/+package+/__init__.py_tmpl 2 ●●● patch | view | raw | blame | history
pyramid/scaffolds/routesalchemy/+package+/__init__.py_tmpl 2 ●●● patch | view | raw | blame | history
pyramid/scaffolds/starter/+package+/__init__.py_tmpl 2 ●●● patch | view | raw | blame | history
pyramid/scaffolds/zodb/+package+/__init__.py_tmpl 2 ●●● patch | view | raw | blame | history
setup.py 2 ●●● patch | view | raw | blame | history
CHANGES.txt
@@ -1,5 +1,5 @@
Next release
============
1.2a6 (2011-09-06)
==================
Bug Fixes
---------
@@ -13,11 +13,11 @@
- Internalize code previously depended upon as imports from the
  ``paste.auth`` module (futureproof).
- Replaced use of ``paste.urlparser.StaticURLParser`` with a derivative of
  Chris Rossi's "happy" static file serving code (futureproof).
- Fixed test suite; on some systems tests would fail due to indeterminate
  test run ordering and a double-push-single-pop of a shared test variable.
- Replaced use of ``paste.urlparser.StaticURLParser`` with a derivative of
  Chris Rossi's "happy" static file serving code.
Behavior Differences
--------------------
@@ -31,6 +31,12 @@
  that cannot be accessed by the Pyramid process' user due to file
  permissions, an IOError (or similar) will be raised.
Scaffolds
---------
- All scaffolds now send the ``cache_max_age`` parameter to the
  ``add_static_view`` method.
1.2a5 (2011-09-04)
==================
docs/conf.py
@@ -93,7 +93,7 @@
# other places throughout the built documents.
#
# The short X.Y version.
version = '1.2a5'
version = '1.2a6'
# The full version, including alpha/beta/rc tags.
release = version
docs/tutorials/wiki/src/authorization/tutorial/__init__.py
@@ -23,6 +23,6 @@
    config = Configurator(root_factory=root_factory, settings=settings,
                          authentication_policy=authn_policy,
                          authorization_policy=authz_policy)
    config.add_static_view('static', 'tutorial:static')
    config.add_static_view('static', 'tutorial:static', cache_max_age=3600)
    config.scan('tutorial')
    return config.make_wsgi_app()
docs/tutorials/wiki/src/basiclayout/tutorial/__init__.py
@@ -10,6 +10,6 @@
    """ This function returns a Pyramid WSGI application.
    """
    config = Configurator(root_factory=root_factory, settings=settings)
    config.add_static_view('static', 'tutorial:static')
    config.add_static_view('static', 'tutorial:static', cache_max_age=3600)
    config.scan('tutorial')
    return config.make_wsgi_app()
docs/tutorials/wiki/src/models/tutorial/__init__.py
@@ -10,7 +10,7 @@
    """ This function returns a WSGI application.
    """
    config = Configurator(root_factory=root_factory, settings=settings)
    config.add_static_view('static', 'tutorial:static')
    config.add_static_view('static', 'tutorial:static', cache_max_age=3600)
    config.scan('tutorial')
    return config.make_wsgi_app()
docs/tutorials/wiki/src/tests/tutorial/__init__.py
@@ -23,6 +23,6 @@
    config = Configurator(root_factory=root_factory, settings=settings,
                          authentication_policy=authn_policy,
                          authorization_policy=authz_policy)
    config.add_static_view('static', 'tutorial:static')
    config.add_static_view('static', 'tutorial:static', cache_max_age=3600)
    config.scan('tutorial')
    return config.make_wsgi_app()
docs/tutorials/wiki/src/views/tutorial/__init__.py
@@ -10,6 +10,6 @@
    """ This function returns a WSGI application.
    """
    config = Configurator(root_factory=root_factory, settings=settings)
    config.add_static_view('static', 'tutorial:static')
    config.add_static_view('static', 'tutorial:static', cache_max_age=3600)
    config.scan('tutorial')
    return config.make_wsgi_app()
docs/tutorials/wiki2/src/authorization/tutorial/__init__.py
@@ -19,7 +19,7 @@
                          root_factory='tutorial.models.RootFactory',
                          authentication_policy=authn_policy,
                          authorization_policy=authz_policy)
    config.add_static_view('static', 'tutorial:static')
    config.add_static_view('static', 'tutorial:static', cache_max_age=3600)
    config.add_route('view_wiki', '/')
    config.add_route('login', '/login')
docs/tutorials/wiki2/src/basiclayout/tutorial/__init__.py
@@ -9,7 +9,7 @@
    engine = engine_from_config(settings, 'sqlalchemy.')
    initialize_sql(engine)
    config = Configurator(settings=settings)
    config.add_static_view('static', 'tutorial:static')
    config.add_static_view('static', 'tutorial:static', cache_max_age=3600)
    config.add_route('home', '/')
    config.add_view('tutorial.views.my_view', route_name='home',
                    renderer='templates/mytemplate.pt')
docs/tutorials/wiki2/src/models/tutorial/__init__.py
@@ -9,7 +9,7 @@
    engine = engine_from_config(settings, 'sqlalchemy.')
    initialize_sql(engine)
    config = Configurator(settings=settings)
    config.add_static_view('static', 'tutorial:static')
    config.add_static_view('static', 'tutorial:static', cache_max_age=3600)
    config.add_route('home', '/')
    config.add_view('tutorial.views.my_view', route_name='home',
                    renderer='templates/mytemplate.pt')
docs/tutorials/wiki2/src/tests/tutorial/__init__.py
@@ -19,7 +19,7 @@
                          root_factory='tutorial.models.RootFactory',
                          authentication_policy=authn_policy,
                          authorization_policy=authz_policy)
    config.add_static_view('static', 'tutorial:static')
    config.add_static_view('static', 'tutorial:static', cache_max_age=3600)
    config.add_route('view_wiki', '/')
    config.add_route('login', '/login')
docs/tutorials/wiki2/src/views/tutorial/__init__.py
@@ -9,7 +9,7 @@
    engine = engine_from_config(settings, 'sqlalchemy.')
    initialize_sql(engine)
    config = Configurator(settings=settings)
    config.add_static_view('static', 'tutorial:static')
    config.add_static_view('static', 'tutorial:static', cache_max_age=3600)
    config.add_route('view_wiki', '/')
    config.add_route('view_page', '/{pagename}')
    config.add_route('add_page', '/add_page/{pagename}')
docs/whatsnew-1.2.rst
@@ -58,6 +58,9 @@
  error catching / email sending is now the domain of the ``pyramid_exclog``
  package (see https://docs.pylonsproject.org/projects/pyramid_exclog/dev/).
- All scaffolds now send the ``cache_max_age`` parameter to the
  ``add_static_view`` method.
Minor Feature Additions
-----------------------
@@ -237,6 +240,18 @@
  returns a route object.  This change was required to make route vs. view
  configuration processing work properly.
Behavior Differences
--------------------
- An ETag header is no longer set when serving a static file.  A
  Last-Modified header is set instead.
- Static file serving no longer supports the ``wsgi.file_wrapper`` extension.
- Instead of returning a ``403 Forbidden`` error when a static file is served
  that cannot be accessed by the Pyramid process' user due to file
  permissions, an IOError (or similar) will be raised.
Documentation Enhancements
--------------------------
pyramid/scaffolds/alchemy/+package+/__init__.py_tmpl
@@ -9,7 +9,7 @@
    engine = engine_from_config(settings, 'sqlalchemy.')
    get_root = appmaker(engine)
    config = Configurator(settings=settings, root_factory=get_root)
    config.add_static_view('static', '{{package}}:static')
    config.add_static_view('static', '{{package}}:static', cache_max_age=3600)
    config.add_view('{{package}}.views.view_root',
                    context='{{package}}.models.MyRoot',
                    renderer="templates/root.pt")
pyramid/scaffolds/routesalchemy/+package+/__init__.py_tmpl
@@ -9,7 +9,7 @@
    engine = engine_from_config(settings, 'sqlalchemy.')
    initialize_sql(engine)
    config = Configurator(settings=settings)
    config.add_static_view('static', '{{package}}:static')
    config.add_static_view('static', '{{package}}:static', cache_max_age=3600)
    config.add_route('home', '/')
    config.add_view('{{package}}.views.my_view',
                    route_name='home',
pyramid/scaffolds/starter/+package+/__init__.py_tmpl
@@ -8,5 +8,5 @@
    config.add_view('{{package}}.views.my_view',
                    context='{{package}}:resources.Root',
                    renderer='{{package}}:templates/mytemplate.pt')
    config.add_static_view('static', '{{package}}:static')
    config.add_static_view('static', '{{package}}:static', cache_max_age=3600)
    return config.make_wsgi_app()
pyramid/scaffolds/zodb/+package+/__init__.py_tmpl
@@ -10,6 +10,6 @@
    """ This function returns a Pyramid WSGI application.
    """
    config = Configurator(root_factory=root_factory, settings=settings)
    config.add_static_view('static', '{{package}}:static')
    config.add_static_view('static', '{{package}}:static', cache_max_age=3600)
    config.scan('{{package}}')
    return config.make_wsgi_app()
setup.py
@@ -52,7 +52,7 @@
    install_requires.append('simplejson')
    
setup(name='pyramid',
      version='1.2a5',
      version='1.2a6',
      description=('The Pyramid web application development framework, a '
                   'Pylons project'),
      long_description=README + '\n\n' +  CHANGES,