summaryrefslogtreecommitdiff
path: root/CHANGES.txt
AgeCommit message (Collapse)Author
2011-04-21Merge branch 'scriptname_fixes'Chris McDonough
2011-04-21add changelog entries, fix docs for wsgiapp2Chris McDonough
2011-04-21add 'adding a custom settings'Chris McDonough
2011-04-19Merge branch 'jgonera-master'Chris McDonough
2011-04-19renderingChris McDonough
2011-04-19Merge branch 'master' of git://github.com/Pylons/pyramidJuliusz Gonera
2011-04-19replacement for torturous_route_re, inner squigglies work againJuliusz Gonera
2011-04-19clarifyChris McDonough
2011-04-18merge requestresponse section into various changes subsectionsChris McDonough
2011-04-18Merge branch 'requestresponse'Chris McDonough
2011-04-18Fix parens.Chris McDonough
2011-04-18- Pyramid now depends on WebOb >= 1.0.2 (tests depend on the bugfix in thatChris McDonough
release: "Fix handling of WSGI environs with missing ``SCRIPT_NAME``"). (Note that in reality, everyone should probably be using 1.0.4 or better though, as WebOb 1.0.2 and 1.0.3 were effectively brownbag releases.)
2011-04-18garden change messageChris McDonough
2011-04-18- Deprecated all assignments to ``request.response_*`` attributes such asChris McDonough
``request.response_content_type = 'foo'``. Assignments and mutations of the following request attributes that were considered by the framework for response influence are now deprecated: ``response_content_type``, ``response_headerlist``, ``response_status``, ``response_charset``, and ``response_cache_for``. Instead of assigning these to the request object for detection by the rendering machinery, users should use the appropriate API of the Response object created by accessing ``request.response`` (e.g. ``request.response_content_type = 'abc'`` -> ``request.response.content_type = 'abc'``). - Custom request objects are now required to have a ``response`` attribute (or reified property) if they are meant to be used with renderers. This ``response`` attribute should be an instance of the class ``pyramid.response.Response``. - The JSON and string renderer factories now use ``request.response.content_type`` rather than ``request.response_content_type``. They determine whether they should set the content type of the response by comparing the response's content type against the default (usually ``text/html``); if the content type is not the default, the renderer changes the content type (to ``application/json`` or ``text/plain`` for JSON and string renderers respectively). - Made it possible to assign to and delete ``pyramid.testing.DummyRequest.registry`` (bugfix).
2011-04-18- When visiting a URL that represented a static view which resolved to aChris McDonough
subdirectory, the ``index.html`` of that subdirectory would not be served properly. Instead, a redirect to ``/subdir`` would be issued. This has been fixed, and now visiting a subdirectory that contains an ``index.html`` within a static view returns the index.html properly. See also https://github.com/Pylons/pyramid/issues/67. - Redirects issued by a static view did not take into account any existing ``SCRIPT_NAME`` (such as one set by a url mapping composite). Now they do. Closes #67.
2011-04-13- Add missing docs reference toChris McDonough
``pyramid.config.Configurator.set_view_mapper`` and refer to it within Hooks chapter section named "Using a View Mapper".
2011-04-13- Make ``pyramid.interfaces.IAuthenticationPolicy`` andChris McDonough
``pyramid.interfaces.IAuthorizationPolicy`` public interfaces, and refer to them within the ``pyramid.authentication`` and ``pyramid.authorization`` API docs. - Render the function definitions for each exposed interface in ``pyramid.interfaces``. Closes #167.
2011-04-11- Don't explicitly prevent the ``timeout`` from being lower than theChris McDonough
``reissue_time`` when setting up an ``AuthTktAuthenticationPolicy`` (previously such a configuration would raise a ``ValueError``, now it's allowed, although typically nonsensical). Allowing the nonsensical configuration made the code more understandable and required fewer tests. - Add a test for when the auth_tkt value is empty.
2011-04-10gardeningChris McDonough
2011-04-10- It is now possible to get information about why Pyramid raised a ForbiddenChris McDonough
exception from within an exception view. The ``ACLDenied`` object returned by the ``permits`` method of each stock authorization policy (``pyramid.interfaces.IAuthorizationPolicy.permits``) is now attached to the Forbidden exception as its ``result`` attribute. Therefore, if you've created a Forbidden exception view, you can see the ACE, ACL, permission, and principals involved in the request as eg. ``context.result.permission``, ``context.result.acl``, etc within the logic of the Forbidden exception view.
2011-04-10- An exception raised by a NewRequest event subscriber can now be caught byChris McDonough
an exception view.
2011-04-06- ``testing.DummyRequest`` used the wrong registry (the global registry) asChris McDonough
``self.registry`` if a dummy request was created *before* ``testing.setUp`` was executed (``testing.setUp`` pushes a local registry onto the threadlocal stack). Fixed by implementing ``registry`` as a property for DummyRequest instead of eagerly assigning an attribute. See also https://github.com/Pylons/pyramid/issues/165 Closes #165.
2011-04-01add patricio to list of contributorsChris McDonough
2011-04-01- Static views registered with ``config.add_static_view`` which also includedChris McDonough
a ``permission`` keyword argument would not work as expected, because ``add_static_view`` also registered a route factory internally. Because a route factory was registered internally, the context checked by the Pyramid permission machinery never had an ACL. ``add_static_view`` no longer registers a route with a factory, so the default root factory will be used. - ``config.add_static_view`` now passes extra keyword arguments it receives to ``config.add_route`` (calling add_static_view is mostly logically equivalent to adding a view of the type ``pyramid.static.static_view`` hooked up to a route with a subpath). This makes it possible to pass e.g., ``factory=`` to ``add_static_view`` to protect a particular static view with a custom ACL. Closes #161.
2011-03-25Moved the content that was put into whatsnew-1.0.rst into the CHANGES.txtJoe Dallago
file, b/c the terminology change doesn't apply to version 1.0. Also changed the output of the paster create command in project.rst back to its original state.
2011-03-22- Include SCRIPT_NAME in redirects issued byChris McDonough
``pyramid.view.append_slash_notfound_view`` (see https://github.com/Pylons/pyramid/issues#issue/149). Closes #149
2011-03-01Add change note for dnouri's solution to issue 141.Chris McDonough
Closes #141.
2011-02-25- ``pyramid.url.route_path`` (and the shortcutChris McDonough
``pyramid.request.Request.route_url`` method) now include the WSGI SCRIPT_NAME at the front of the path if it is not empty (see https://github.com/Pylons/pyramid/issues/135). - ``pyramid.testing.DummyRequest`` now has a ``script_name`` attribute (the empty string). Closes #135
2011-02-22From the code:Chris McDonough
# While Chrome, IE, and Firefox can cope, Opera (at least) cannot # cope with a port number in the cookie domain when the URL it # receives the cookie from does not also have that port number in it # (e.g via a proxy). In the meantime, HTTP_HOST is sent with port # number, and neither Firefox nor Chrome do anything with the # information when it's provided in a cookie domain except strip it # out. So we strip out any port number from the cookie domain # aggressively to avoid problems. See also # https://github.com/Pylons/pyramid/issues/131 Closes #131
2011-02-17Undo the inner squiggly regex fix introduced in commit #9595236 because the ↵Chris McDonough
regex breaks on Jython. See https://github.com/Pylons/pyramid/issues/#issue/123
2011-02-13note changesChris McDonough
2011-02-12- ``pyramid_alchemy`` paster template now uses ``query.get`` rather thanChris McDonough
``query.filter_by`` to take better advantage of identity map caching. - ``pyramid_alchemy`` paster template now has unit tests.
2011-02-09- Integers and longs passed as ``elements`` to ``pyramid.url.resource_url``Chris McDonough
or ``pyramid.request.Request.resource_url`` e.g. ``resource_url(context, request, 1, 2)`` (``1`` and ``2`` are the ``elements``) will now be converted implicitly to strings in the result. Previously passing integers or longs as elements would cause a TypeError. Closes #124
2011-02-09- URL pattern markers used in URL dispatch are permitted to specify a customChris McDonough
regex. For example, the pattern ``/{foo:\d+}`` means to match ``/12345`` (foo==12345 in the match dictionary) but not ``/abc``. However, custom regexes in a pattern marker which used squiggly brackets did not work. For example, ``/{foo:\d{4}}`` would fail to match ``/1234`` and ``/{foo:\d{1,2}}`` would fail to match ``/1`` or ``/11``. One level of inner squiggly brackets is now recognized so that the prior two patterns given as examples now work. See also https://github.com/Pylons/pyramid/issues/#issue/123. Closes #123
2011-01-30note removalChris McDonough
2011-01-30prep for 1.0Chris McDonough
2011-01-30gardenChris McDonough
2011-01-30- Removed duplicate implementations of ``is_response``. Two competingChris McDonough
implementations existed: one in ``pyramid.config`` and one in ``pyramid.view``. Now the one defined in ``pyramid.view`` is used internally by ``pyramid.config`` and continues to be advertised as an API. Closes #114.
2011-01-29- Changed "Cleaning up After a Request" section in the URL Dispatch chapterChris McDonough
to use ``request.add_finished_callback`` instead of jamming an object with a ``__del__`` into the WSGI environment.
2011-01-29- Added ``egg:repoze.retry#retry`` middleware to the WSGI pipeline in ZODBChris McDonough
templates (retry ZODB conflict errors which occur in normal operations).
2011-01-29- Moved "Using ZODB With ZEO" and "Using repoze.catalog Within Pyramid"Chris McDonough
tutorials out of core documentation and into the Pyramid Tutorials site (http://docs.pylonsproject.org/projects/pyramid_tutorials/dev/).
2011-01-28- Removed API documentation for ``pyramid.testing`` APIs namedChris McDonough
``registerDummySecurityPolicy``, ``registerResources``, ``registerModels``, ``registerEventListener``, ``registerTemplateRenderer``, ``registerDummyRenderer``, ``registerView``, ``registerUtility``, ``registerAdapter``, ``registerSubscriber``, ``registerRoute``, and ``registerSettings``. - Deprecated-since-BFG-1.2 APIs from ``pyramid.testing`` now properly emit deprecation warnings.
2011-01-28transposedChris McDonough
2011-01-28gardenChris McDonough
2011-01-28prep for 1.0b3Chris McDonough
2011-01-27- Beef up documentation related to ``set_default_permission``: explicitlyChris McDonough
mention that default permissions also protect exception views.
2011-01-26- ``pyramid.view.append_slash_notfound_view`` now preserves GET queryChris McDonough
parameters across redirects.
2011-01-25- Use © instead of copyright symbol in paster templates / tutorialChris McDonough
templates for the benefit of folks who cutnpaste and save to a non-UTF8 format.
2011-01-24prep for 1.0b2Chris McDonough
2011-01-24wordingChris McDonough