summaryrefslogtreecommitdiff
path: root/CHANGES.txt
AgeCommit message (Collapse)Author
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
2011-01-19- Fix deprecated example showing ``chameleon_zpt`` API call in testingChris McDonough
narrative chapter.
2011-01-19- The default value for the ``cookie_on_exception`` parameter toChris McDonough
``pyramid.session.UnencyrptedCookieSessionFactory`` is now ``True``. This means that when view code causes an exception to be raised, and the session has been mutated, a cookie will be sent back in the response. Previously its default value was ``False``.
2011-01-19changelog entry for authtkt tokens featureChris McDonough
2011-01-19Merge branch 'tokens'Wichert Akkerman
2011-01-19- When a ``pyramid.exceptions.Forbidden`` error is raised, its status codeChris McDonough
now ``403 Forbidden``. It was previously ``401 Unauthorized``, for backwards compatibility purposes with ``repoze.bfg``. This change will cause problems for users of Pyramid with ``repoze.who``, which intercepts ``401 Unauthorized`` by default, but allows ``403 Forbidden`` to pass through. Those deployments will need to configure ``repoze.who`` to also react to ``403 Forbidden``.
2011-01-19reformatChris McDonough
2011-01-19Add changelog entry about merging caseman-masterChris McDonough
2011-01-18prep for 1.0a10Chris McDonough
2011-01-18- Most references to ZCML in narrative chapters have been removed orChris McDonough
redirected to ``pyramid_zcml`` locations.
2011-01-18descriptionsChris McDonough
2011-01-18- The ``make_app`` function has been removed from the ``pyramid.router``Chris McDonough
module. It continues life within the ``pyramid_zcml`` package. This leaves the ``pyramid.router`` module without any API functions. - The ``configure_zcml`` setting within the deployment settings (within ``**settings`` passed to a Pyramid ``main`` function) has ceased to have any meaning. - The ``starter_zcml`` paster template has been moved to the ``pyramid_zcml`` package. - The ``bfg2pyramid`` script now converts ZCML include tags that have ``repoze.bfg.includes`` as a package attribute to the value ``pyramid_zcml``. For example, ``<include package="repoze.bfg.includes">`` will be converted to ``<include package="pyramid_zcml">``. - The ``load_zcml`` method of a Configurator has been removed from the Pyramid core. Loading ZCML is now a feature of the ``pyramid_zcml`` package, which can be downloaded from PyPI. Documentation for the package should be available via http://pylonsproject.org, which describes how to get this method back after depending upon ``pyramid_zcml`` as an ``install_requires`` dependency. - The ``pyramid.includes`` subpackage has been removed. ZCML files which use include the package ``pyramid.includes`` (e.g. ``<include package="pyramid.includes">``) now must include the ``pyramid_zcml`` package instead (e.g. ``<include package="pyramid_zcml"/>). - The "Declarative Configuration" narrative chapter has been removed (it was moved to the ``pyramid_zcml`` pakcage). - The add_directive method now accepts an "action_wrap" flag. - Fix some orphaned references. - Remove some docstring references to ZCML directives. - All integration test fixtures have been changed to use imperative configuration rather than ZCML configuration.
2011-01-16- The ``pylons_minimal``, ``pylons_basic`` and ``pylons_sqla`` pasterChris McDonough
templates were removed. Use ``pyramid_sqla`` (available from PyPI) as a generic replacement for Pylons-esque development. - All references to ``add_handler`` and the ``handler`` ZCML directive have been removed from the docs, and stubs which point to ``pylons_handlers`` package have replaced them.
2011-01-16Remove configurator.add_handler, handler-related functions and methods from ↵Chris McDonough
pyramid.view, handler ZCML directive. This functionality is to be moved to a "pyramid_handlers" package. Fix add_directive to properly persist directives across configurator creations.
2011-01-16- When ``Configurator.include`` is passed a *module* as an argument, itChris McDonough
defaults to attempting to find and use a callable named ``includeme`` within that module. This makes it possible to use ``config.include('some.module')`` rather than ``config.include('some.module.somefunc')`` as long as the include function within ``some.module`` is named ``includeme``.
2011-01-16- Add ``add_directive`` method to configurator, which allows frameworkChris McDonough
extenders to add methods to the configurator (ala ZCML directives).
2011-01-15- URL Dispatch properly handles a '.*' or '*' appearing in a regex matchBen Bangert
when used inside brackets. Resolve Issue #90.
2011-01-14- Add ``charset`` attribute to ``pyramid.testing.DummyRequest``Chris McDonough
(unconditionally ``UTF-8``).
2011-01-12- Deprecation warnings related to import of the following API functions wereChris McDonough
added: ``pyramid.traversal.find_model``, ``pyramid.traversal.model_path``, ``pyramid.traversal.model_path_tuple``, ``pyramid.url.model_url``. The instructions emitted by the deprecation warnings instruct the developer to change these method spellings to their ``resource`` equivalents. This is a consequence of the mass concept rename of "model" to "resource" performed in 1.0a7.
2011-01-12- Document the ``request.override_renderer`` attribute within the narrativeChris McDonough
"Renderers" chapter in a section named "Overriding A Renderer at Runtime".
2011-01-12FeaturesChris McDonough
-------- - ``pyramid.testing.setUp`` and ``pyramid.testing.tearDown`` have been undeprecated. They are now the canonical setup and teardown APIs for test configuration, replacing "direct" creation of a Configurator. This is a change designed to provide a facade that will protect against any future Configurator deprecations. Paster Templates ---------------- - All paster templates now use ``pyramid.testing.setUp`` and ``pyramid.testing.tearDown`` rather than creating a Configurator "by hand" within their ``tests.py`` module, as per decision in features above. Documentation ------------- - The wiki and wiki2 tutorials now use ``pyramid.testing.setUp`` and ``pyramid.testing.tearDown`` rather than creating a Configurator "by hand", as per decision in features above. - The "Testing" narrative chapter now explains ``pyramid.testing.setUp`` and ``pyramid.testing.tearDown`` instead of Configurator creation and ``Configurator.begin()`` and ``Configurator.end()``.
2011-01-08back to developmentChris McDonough
2011-01-08prep for 1.0a9Chris McDonough
2011-01-08gardenChris McDonough
2011-01-08gardenChris McDonough
2011-01-08gardenChris McDonough
2011-01-08- ``pyramid.interfaces.ISession.get_csrf_token`` now mandates that anChris McDonough
implementation should return a *new* token if one doesn't already exist in the session (previously it would return None). The internal sessioning implementation has been changed.
2011-01-07add note about view mapper docsChris McDonough
2011-01-07- Rename ``view_mapper`` argument to add_view to ``mapper``.Chris McDonough
2011-01-06- Readd ``pyramid.traversal.model_path_tuple`` as an alias forChris McDonough
``pyramid.traversal.resource_path_tuple`` for backwards compatibility.
2011-01-05- Instances of ``pyramid.testing.DummyRequest`` now have a ``session``Chris McDonough
object, which is mostly a dictionary, but also implements the other session API methods for flash and CSRF.
2011-01-03- Add a new API ``pyramid.url.current_route_url``, which computes a URL basedChris McDonough
on the "current" route (if any) and its matchdict values.
2011-01-03gardeningChris McDonough
2011-01-03Merge branch 'jkrebs-master'Chris McDonough
Conflicts: CHANGES.txt
2011-01-02- Allow static renderer provided during view registration to be overridden atChris McDonough
request time via a request attribute named ``override_renderer``, which should be the name of a registered renderer. Useful to provide "omnipresent" RPC for existing views. - Convert ``add_view_mapper`` to ``set_view_mapper``. There will only be a single default view mapper. We no longer register named utilities for view mappers to provide alternates. - Previoulsy the ``view_mapper`` argument was required to be the *name* of an existing registered view mapper. We no longer register named utilities for view mappers, so now if an extension wants to override the view mapper used for a particular view registration, it can use the dotted name to a view mapper class or provide that class as ``view_mapper``.
2011-01-02- add a ``add_view_mapper`` API to Configurator. This API allows you to addChris McDonough
a named implementation of a ``pyramid.interfaces.IViewMapperFactory`` interface. Its name can be passed as a ``view_mapper`` argument to ``config.add_view``. A view mapper allows objects that are meant to be used as view callables to have an arbitrary argument list and an arbitrary result. This feature will be used by Pyramid extension developers, not by "civilians". - New constructor argument to Configurator: ``default_view_mapper``. Useful to create systems that have view callables with alternate default calling conventions. - ``view_mapper`` argument to ``add_view`` should now be a view mapper *name* rather than an implementation. - Add ``view_mapper`` argument to ``view_config`` decorator constructor. - Remove (non-API) function of config.py named _map_view. - Fix docstring for ``decorator`` argument to add_view. - Factor invocation of view mapper into a viewderiver method. - Promote view rendering and decorating into viewderiver, out of view mapper. - Make requestonly into a function rather than a method of the default view mapper.
2011-01-01quote literalChris McDonough
2011-01-01- The class ``pyramid.authentication.AuthTktCookieHelper`` is now an API.Chris McDonough
This class can be used by third-party authentication policy developers to help in the mechanics of authentication cookie-setting.
2010-12-31- The ``pyramid.interfaces.IAuthenticationPolicy`` interface now specifies anChris McDonough
``unauthenticated_userid`` method. This method supports an important optimization required by people who are using persistent storages which do not support object caching and whom want to create a "user object" as a request attribute. - A new API has been added to the ``pyramid.security`` module named ``unauthenticated_userid``. This API function calls the ``unauthenticated_userid`` method of the effective security policy. - An ``unauthenticated_userid`` method has been added to the dummy authentication policy returned by ``pyramid.config.Configurator.testing_securitypolicy``. It returns the same thing as that the dummy authentication policy's ``authenticated_userid`` method. - Since the ``pyramid.interfaces.IAuthenticationPolicy`` interface now specifies that a policy implementation must implement an ``unauthenticated_userid`` method, all third-party custom authentication policies now must implement this method. It, however, will only be called when the global function named ``pyramid.security.unauthenticated_userid`` is invoked, so if you're not invoking that, you will not notice any issues. - The (non-API) method of all internal authentication policy implementations previously named ``_get_userid`` is now named ``unauthenticated_userid``, promoted to an API method. If you were overriding this method, you'll now need to override it as ``unauthenticated_userid`` instead.
2010-12-31- A view callable wrapper registered in the registry now contains anChris McDonough
``__original_view__`` attribute which references the original view callable (or class).
2010-12-31note previous changeChris McDonough
2010-12-30stray header lineChris McDonough
2010-12-30- The "view derivation" code is now factored into a set of classes ratherChris McDonough
than a large number of standalone functions (a side effect of the ``view_mapper`` refactoring). - The ``pyramid.renderer.RendererHelper`` class has grown a ``render_view`` method, which is used by the default view mapper (a side effect of the ``view_mapper`` refactoring). - The object passed as ``renderer`` to the "view deriver" is now an instance of ``pyramid.renderers.RendererHelper`` rather than a dictionary (a side effect of ``view_mapper`` refactoring).
2010-12-29Merge remote branch 'refs/remotes/upstream/viewderiver' into ra_view_decorationRob Miller
Conflicts: CHANGES.txt pyramid/config.py
2010-12-29Removed self arguments from new ISession method signatures.Joachim Krebs
2010-12-29- The (weak) "Converting a CMF Application to Pyramid" tutorial has beenChris McDonough
removed from the tutorials section. It was moved to the ``pyramid_tutorials`` Github repository.
2010-12-28record handler _action_decorator classmethod supportRob Miller
2010-12-28Recorded description of last change and added self to contributors list.Rob Miller