| | |
| | | Next release |
| | | ============ |
| | | 1.2a6 (2011-09-06) |
| | | ================== |
| | | |
| | | Bug Fixes |
| | | --------- |
| | |
| | | - 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 |
| | | -------------------- |
| | |
| | | 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) |
| | | ================== |
| | | |
| | |
| | | # 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 |
| | | |
| | |
| | | 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() |
| | |
| | | """ 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() |
| | |
| | | """ 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() |
| | | |
| | |
| | | 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() |
| | |
| | | """ 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() |
| | |
| | | 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') |
| | |
| | | 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') |
| | |
| | | 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') |
| | |
| | | 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') |
| | |
| | | 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}') |
| | |
| | | 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 |
| | | ----------------------- |
| | | |
| | |
| | | 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 |
| | | -------------------------- |
| | | |
| | |
| | | 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") |
| | |
| | | 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', |
| | |
| | | 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() |
| | |
| | | """ 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() |
| | |
| | | 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, |