Skip to content

Commit

Permalink
prep for 1.2a6
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Sep 7, 2011
1 parent f46d556 commit d00fa00
Show file tree
Hide file tree
Showing 18 changed files with 42 additions and 21 deletions.
16 changes: 11 additions & 5 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Next release
============
1.2a6 (2011-09-06)
==================

Bug Fixes
---------
Expand All @@ -13,12 +13,12 @@ Internal
- 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
--------------------

Expand All @@ -31,6 +31,12 @@ Behavior Differences
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)
==================

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def nothing(*arg):
# 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

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/wiki/src/authorization/tutorial/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ def main(global_config, **settings):
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()
2 changes: 1 addition & 1 deletion docs/tutorials/wiki/src/basiclayout/tutorial/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ def main(global_config, **settings):
""" 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()
2 changes: 1 addition & 1 deletion docs/tutorials/wiki/src/models/tutorial/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def main(global_config, **settings):
""" 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()

2 changes: 1 addition & 1 deletion docs/tutorials/wiki/src/tests/tutorial/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ def main(global_config, **settings):
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()
2 changes: 1 addition & 1 deletion docs/tutorials/wiki/src/views/tutorial/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ def main(global_config, **settings):
""" 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()
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def main(global_config, **settings):
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')
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/wiki2/src/basiclayout/tutorial/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def main(global_config, **settings):
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')
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/wiki2/src/models/tutorial/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def main(global_config, **settings):
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')
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/wiki2/src/tests/tutorial/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def main(global_config, **settings):
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')
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/wiki2/src/views/tutorial/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def main(global_config, **settings):
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}')
Expand Down
15 changes: 15 additions & 0 deletions docs/whatsnew-1.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ Scaffolding Changes
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
-----------------------

Expand Down Expand Up @@ -237,6 +240,18 @@ Backwards Incompatibilities
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
--------------------------

Expand Down
2 changes: 1 addition & 1 deletion pyramid/scaffolds/alchemy/+package+/__init__.py_tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def main(global_config, **settings):
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")
Expand Down
2 changes: 1 addition & 1 deletion pyramid/scaffolds/routesalchemy/+package+/__init__.py_tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def main(global_config, **settings):
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',
Expand Down
2 changes: 1 addition & 1 deletion pyramid/scaffolds/starter/+package+/__init__.py_tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ def main(global_config, **settings):
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()
2 changes: 1 addition & 1 deletion pyramid/scaffolds/zodb/+package+/__init__.py_tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ def main(global_config, **settings):
""" 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()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d00fa00

Please sign in to comment.