summaryrefslogtreecommitdiff
path: root/CHANGES.txt
AgeCommit message (Collapse)Author
2012-11-02- In the past if a renderer returned ``None``, the body of the resultingChris McDonough
response would be set explicitly to the empty string. Instead, now, the body is left unchanged, which allows the renderer to set a body itself by using e.g. ``request.response.body = b'foo'``. The body set by the renderer will be unmolested on the way out. See https://github.com/Pylons/pyramid/issues/709 Closes #709
2012-11-02resolve merge conflictChris McDonough
2012-11-02gardenChris McDonough
2012-11-02- Do not allow the userid returned from the ``authenticated_userid`` or theChris McDonough
userid that is one of the list of principals returned by ``effective_principals`` to be either of the strings ``system.Everyone`` or ``system.Authenticated`` when any of the built-in authorization policies that live in ``pyramid.authentication`` are in use. These two strings are reserved for internal usage by Pyramid and they will not be accepted as valid userids.
2012-10-30updated changesMichael Merickel
2012-10-28- Added an ``effective_principals`` route and view predicate.Chris McDonough
2012-10-26prep for 1.4a3Chris McDonough
2012-10-26- New ``physical_path`` view predicate. If specified, this value should be aChris McDonough
string or a tuple representing the physical traversal path of the context found via traversal for this predicate to match as true. For example: ``physical_path='/'`` or ``physical_path='/a/b/c'`` or ``physical_path=('', 'a', 'b', 'c')``. This is not a path prefix match or a regex, it's a whole-path match. It's useful when you want to always potentially show a view when some object is traversed to, but you can't be sure about what kind of object it will be, so you can't use the ``context`` predicate. The individual path elements inbetween slash characters or in tuple elements should be the Unicode representation of the name of the resource and should not be encoded in any way.
2012-10-14point at policyChris McDonough
2012-10-14Update change log.Chris Rossi
2012-10-14Merge branch 'master' into feature-basic-authChris Rossi
2012-10-14Fix rst syntax error which prevented Sphinx docs from building.Chris Rossi
2012-10-13mention commentsChris McDonough
2012-10-13Merge branch 'master' into 1.4-branchChris McDonough
2012-10-13add docs and changelog noteChris McDonough
2012-10-07- The Configurator ``testing_securitypolicy`` method now returns the policyChris McDonough
object it creates. - The Configurator ``testing_securitypolicy`` method accepts two new arguments: ``remember_result`` and ``forget_result``. If supplied, these values influence the result of the policy's ``remember`` and ``forget`` methods, respectively. - The DummySecurityPolicy created by ``testing_securitypolicy`` now sets a ``forgotten`` value on the policy (the value ``True``) when its ``forget`` method is called. - The DummySecurityPolicy created by ``testing_securitypolicy`` now sets a ``remembered`` value on the policy, which is the value of the ``principal`` argument it's called with when its ``remember`` method is called.
2012-10-05gardenChris McDonough
2012-09-30- 1.4a ``pyramid.scripting.prepare`` behaved differently than 1.3 seriesChris McDonough
function of same name. In particular, if passed a request, it would not set the ``registry`` attribute of the request like 1.3 did. A symptom would be that passing a request to ``pyramid.paster.bootstrap`` (which uses the function) that did not have a ``registry`` attribute could assume that the registry would be attached to the request by Pyramid. This assumption could be made in 1.3, but not in 1.4. The assumption can now be made in 1.4 too (a registry is attached to a request passed to bootstrap or prepare).
2012-09-27prep for 1.4a2Chris McDonough
2012-09-22- Add ``Base.metadata.bind = engine`` to alchemy template, so that tablesChris McDonough
defined imperatively will work. - update wiki2 SQLA tutorial with the changes required after inserting ``Base.metadata.bind = engine`` into the alchemy scaffold.
2012-09-22mirror john's change for chameleon, better changelog messageChris McDonough
2012-09-22gardenChris McDonough
2012-09-19gardenChris McDonough
2012-09-19gardenChris McDonough
2012-09-16change to kick rtdChris McDonough
2012-09-16change to kick rtdChris McDonough
2012-09-16prep for 1.4a1Chris McDonough
2012-09-16rename subrequest to invoke_subrequestChris McDonough
2012-09-16docs and testChris McDonough
2012-09-15add a whatsnew-1.4 documentChris McDonough
2012-09-15reclassify bug as featureChris McDonough
2012-09-15merge jinty's testConfig codeChris McDonough
2012-09-15add pyramid.decorator.reify as an API. Closes #682Chris McDonough
2012-09-13add upgrading chapter, make docs render againChris McDonough
2012-09-11gardenChris McDonough
2012-09-11- Request properties and methods added via ``config.set_request_property`` orChris McDonough
``config.add_request_method`` are now available to tweens. - Request properties and methods added via ``config.set_request_property`` or ``config.add_request_method`` are now available in the request object returned from ``pyramid.paster.bootstrap``. Related partially to issue #520 and issue #538 and issue #596, although it doesn't actually allow us to close any of them, because we still don't issue a newrequest event when bootstrap is used.
2012-09-10- ``pyramid.testing.DummyRequest`` now supports methods supplied by theChris McDonough
``pyramid.util.InstancePropertyMixin`` class such as ``set_property``.
2012-09-09rename set_request_method to add_request_method. closes #683Chris McDonough
2012-09-09- These APIs from the ``pyramid.testing`` module were removed. They haveChris McDonough
been printing deprecation warnings since Pyramid 1.0: * ``registerDummySecurityPolicy``, use ``pyramid.config.Configurator.testing_securitypolicy`` instead. * ``registerResources`` (aka ``registerModels``, use ``pyramid.config.Configurator.testing_resources`` instead. * ``registerEventListener``, use ``pyramid.config.Configurator.testing_add_subscriber`` instead. * ``registerTemplateRenderer`` (aka `registerDummyRenderer``), use ``pyramid.config.Configurator.testing_add_template`` instead. * ``registerView``, use ``pyramid.config.Configurator.add_view`` instead. * ``registerUtility``, use ``pyramid.config.Configurator.registry.registerUtility`` instead. * ``registerAdapter``, use ``pyramid.config.Configurator.registry.registerAdapter`` instead. * ``registerSubscriber``, use ``pyramid.config.Configurator.add_subscriber`` instead. * ``registerRoute``, use ``pyramid.config.Configurator.add_route`` instead. * ``registerSettings``, use ``pyramid.config.Configurator.add_settings`` instead.
2012-09-09- The ``pyramid.settings.get_settings()`` API was removed. It had beenChris McDonough
printing a deprecation warning since Pyramid 1.0. If your code depended on this API, use ``pyramid.threadlocal.get_current_registry().settings`` instead or use the ``settings`` attribute of the registry available from the request (``request.registry.settings``).
2012-09-09- The ``pyramid.paster.PyramidTemplate`` API was removed. It had beenChris McDonough
deprecated since Pyramid 1.1 and issued a warning on import. If your code depended on this, adjust your code to import ``pyramid.scaffolds.PyramidTemplate`` instead.
2012-09-09- The ``pyramid.configuration`` module was removed. It had been deprecatedChris McDonough
since Pyramid 1.0 and printed a deprecation warning upon its use. Use ``pyramid.config`` instead.
2012-09-09- The functions from ``pyramid.chameleon_zpt`` and ``pyramid.chameleon_text``Chris McDonough
named ``get_renderer``, ``get_template``, ``render_template``, and ``render_template_to_response`` have been removed. These have issued a deprecation warning upon import since Pyramid 1.0. Use ``pyramid.renderers.get_renderer()``, ``pyramid.renderers.get_renderer().implementation()``, ``pyramid.renderers.render()`` or ``pyramid.renderers.render_to_response`` respectively instead of these functions.
2012-09-09Merge branch 'master' into feature.14removedeprecationsChris McDonough
2012-09-09gardenChris McDonough
2012-09-09- It is no longer possible to pass an environ dictionary directly toChris McDonough
``pyramid.traversal.ResourceTreeTraverser.__call__`` (aka ``ModelGraphTraverser.__call__``). Instead, you must pass a request object. Passing an environment instead of a request has generated a deprecation warning since Pyramid 1.1. - Pyramid will no longer work properly if you use the ``webob.request.LegacyRequest`` as a request factory. Instances of the LegacyRequest class have a ``request.path_info`` which return a string. This Pyramid release assumes that ``request.path_info`` will unconditionally be Unicode. - Pyramid now requires WebOb 1.2b3+ (the prior Pyramid release only relied on 1.2dev+). This is to ensure that we obtain a version of WebOb that returns ``request.path_info`` as text.
2012-09-08trivial change to poke jenkins (im in on an untrusted network and cant use ↵Chris McDonough
the jenkins web ui because we dont have https access to it)
2012-08-29Merge branch 'master' of github.com:Pylons/pyramidChris McDonough
2012-08-29gardenChris McDonough
2012-08-26- Forward-port from 1.3 branch: when registering multiple views with anChris McDonough
``accept`` predicate in a Pyramid application runing under Python 3, you might have received a ``TypeError: unorderable types: function() < function()`` exception.