summaryrefslogtreecommitdiff
path: root/CHANGES.txt
AgeCommit message (Collapse)Author
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
2011-01-24- A bug existed in the ``pyramid.authentication.AuthTktCookieHelper`` whichChris McDonough
would break any usage of an AuthTktAuthenticationPolicy when an auth tkt authentication policy was configured to reissue its tokens (``reissue_time`` < ``timeout`` / ``max_age``). Symptom: ``ValueError: ('Invalid token %r', '')``. See https://github.com/Pylons/pyramid/issues#issue/108.
2011-01-22- The ``render_view`` method of ``pyramid.renderers.RendererHelper`` passedChris McDonough
an incorrect value into the renderer for ``renderer_info``. It now passes an instance of ``RendererHelper`` instead of a dictionary, which is consistent with other usages. See https://github.com/Pylons/pyramid/issues#issue/106 Closes #106
2011-01-22- The ``production.ini`` generated by all paster templates now have anChris McDonough
effective logging level of WARN, which prevents e.g. SQLAlchemy statement logging and other inappropriate output. - The ``production.ini`` of the ``pyramid_routesalchemy`` and ``pyramid_alchemy`` paster templates did not have a ``sqlalchemy`` logger section, preventing ``paster serve production.ini`` from working. - The ``pyramid_routesalchemy`` and ``pyramid_alchemy`` paster templates used the ``{{package}}`` variable in a place where it should have used the ``{{project}}`` variable, causing applications created with uppercase letters e.g. ``paster create -t pyramid_routesalchemy Dibbus`` to fail to start when ``paster serve development.ini`` was used against the result. See https://github.com/Pylons/pyramid/issues/#issue/107 Closes #107
2011-01-21of course, wrong date in tarballChris McDonough
2011-01-21prep for 1.0b1Chris McDonough
2011-01-21- Minimally explain usage of custom regular expressions in URL dispatchChris McDonough
replacement markers within URL Dispatch chapter.
2011-01-21- Add a ``MANIFEST.in`` file to each paster template. SeeChris McDonough
https://github.com/Pylons/pyramid/issues#issue/95 Closes issue #95.
2011-01-21- Slightly improved interface docs for ``IAuthorizationPolicy``.Chris McDonough
2011-01-21- Move content of "Forms" chapter back to "Views" chapter; I can't think of aChris McDonough
better place to put it.
2011-01-21- ``testing.setUp`` now adds a ``settings`` attribute to the registry (bothChris McDonough
when it's passed a registry without any settings and when it creates one). - The ``testing.setUp`` function now takes a ``settings`` argument, which should be a dictionary. Its values will subsequently be available on the returned ``config`` object as ``config.registry.settings``.
2011-01-21- Added "What's New in Pyramid 1.0" chapter to HTML rendering ofChris McDonough
documentation.
2011-01-21- Add (minimal) documentation about using I18N within Mako templates toChris McDonough
"Internationalization and Localization" narrative chapter.
2011-01-21- Add docs for ``add_finished_callback``, ``add_response_callback``,Chris McDonough
``route_path``, ``route_url``, and ``static_url`` methods to ``pyramid.request.Request`` API docs.
2011-01-21- Add ``wild_domain`` argument to AuthTktAuthenticationPolicy, which defaultsChris McDonough
to ``True``. If it is set to ``False``, the feature of the policy which sets a cookie with a wilcard domain will be turned off.
2011-01-19- Added "Adding Methods to the Configurator via ``add_directive``" section toChris McDonough
Advanced Configuration narrative chapter.
2011-01-19- Using the ``pyramid.view.bfg_view`` alias for ``pyramid.view.view_config``Chris McDonough
(a backwards compatibility shim) now issues a deprecation warning.
2011-01-19- The ``pyramid_zodb``, ``pyramid_routesalchemy`` and ``pyramid_alchemy``Chris McDonough
paster templates now use a default "commit veto" hook when configuring the ``repoze.tm2`` transaction manager in ``development.ini``. This prevents a transaction from being committed when the response status code is within the 400 or 500 ranges. See also http://docs.repoze.org/tm2/#using-a-commit-veto.
2011-01-19get urls rightChris McDonough