summaryrefslogtreecommitdiff
path: root/pyramid
AgeCommit message (Collapse)Author
2012-10-09Get rid of monkeypatch of Request and Response in pyramid.__init__Wyatt L Baldwin
Added `request.default_request_factory()`, which is now used as the default request factory in the `Router` constructor instead of using the `Request` class directly as the default request factory. Fixes #702
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-05remove unintended commitChris McDonough
2012-10-05Merge branch 'fix.templatemacroreg'Chris McDonough
2012-10-05fix caching of template registrations that reference macrosChris McDonough
2012-10-03Clarify documentation for pyramid.session.check_csrf_token functionDavid\ Beitey
2012-09-30s/either//Chris McDonough
2012-09-30An attempt at better behavior when reload cannot restart the controlled ↵Chris McDonough
application, see issue #681
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-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-22Filenames like app:foo-bar.mako should be valid.John Anderson
2012-09-21note potential 1.5 removals and remove dead codeChris McDonough
2012-09-19remove dead codeChris McDonough
2012-09-19A ``check_csrf`` view predicate was added. For example, you can now doChris McDonough
``config.add_view(someview, check_csrf=True)``. When the predicate is checked, if the ``csrf_token`` value in ``request.params`` matches the csrf token in the request's session, the view will be permitted to execute. Otherwise, it will not be permitted to execute.
2012-09-19add check_csrf convenience functionChris McDonough
2012-09-17resolve contributors.txt merge conflictChris McDonough
2012-09-16make use_tweens=False the defaultChris McDonough
2012-09-16unused importsChris McDonough
2012-09-16be very explicit that view_three should indeed obtain a response as the ↵Chris McDonough
result of invoke_subrequest instead of catching an exception
2012-09-16make use_tweens=True the default, add some more testsChris McDonough
2012-09-16use a string rendererChris McDonough
2012-09-16fix py3Chris McDonough
2012-09-16rename subrequest to invoke_subrequestChris McDonough
2012-09-16docs and testChris McDonough
2012-09-16add docsChris McDonough
2012-09-16sketch out a subrequest APIChris McDonough
2012-09-15merge jinty's testConfig codeChris McDonough
2012-09-15add pyramid.decorator.reify as an API. Closes #682Chris McDonough
2012-09-15use with statement to acquire/release thread locksChris McDonough
2012-09-15remove dead code which supported jythonChris McDonough
2012-09-13add upgrading chapter, make docs render againChris McDonough
2012-09-11set request.context as root unless a request context already existsChris McDonough
2012-09-11coverageChris 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-09point docstring at the most up to date methodChris McDonough
2012-09-09rename set_request_method to add_request_method. closes #683Chris McDonough
2012-09-09fix for py3Chris McDonough
2012-09-09coverageChris McDonough
2012-09-09coverageChris McDonough
2012-09-09coverage for renderers moduleChris McDonough
2012-09-09coverage for supplying a macro argument to a ZPT template rendererChris McDonough
2012-09-09coverage for renderer_factory in chameleon_zpt and chameleon_textChris McDonough
2012-09-09dead codeChris McDonough
2012-09-09dead code, gardenChris 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.