summaryrefslogtreecommitdiff
path: root/pyramid
AgeCommit message (Collapse)Author
2011-07-30Added the pyramid.* settings to the settings dict.Michael Merickel
2011-07-30Updated the scaffold settings to use the 'pyramid.' prefix.Michael Merickel
2011-07-30Added support for a 'pyramid.include' setting to add arbitraryMichael Merickel
modules to pyramid from within an INI file.
2011-07-29Added support in pyramid for "pyramid.*" settings prefixes.Michael Merickel
These settings will override the previous settings keys but not the keys from the environ.
2011-07-28add some edits to the docs for response_adapter decorator; fix renderingsChris McDonough
2011-07-28mergeChris McDonough
2011-07-24Merge pull request #244 from cd34/masterChris McDonough
modified scaffold templates to be xhtml compliant
2011-07-25modified scaffold templates to be xhtml compliantChris Davies
2011-07-25garden; whitespace, comment cleanupsChris McDonough
2011-07-24allow handler to be a dotted nameChris McDonough
2011-07-24- The Pyramid debug logger now uses the standard logging configurationChris McDonough
(usually set up by Paste as part of startup). This means that output from e.g. ``debug_notfound``, ``debug_authorization``, etc. will go to the normal logging channels. The logger name of the debug logger will be the package name of the *caller* of the Configurator's constructor. - If a string is passed as the ``debug_logger`` parameter to a Configurator, that string is considered to be the name of a global Python logger rather than a dotted name to an instance of a logger.
2011-07-24fix merge conflictsChris McDonough
2011-07-24add tests for request handler bitsChris McDonough
2011-07-24back this feature out; we'll try a different approachChris McDonough
2011-07-24first cutChris McDonough
2011-07-23- New method: ``pyramid.request.Request.add_view_mapper``. A view wrapper isChris McDonough
used to wrap the found view callable before it is called by Pyramid's router. This is a feature usually only used by framework extensions, to provide, for example, view timing support. A view wrapper factory must be a callable which accepts three arguments: ``view_callable``, ``request``, and ``exc``. It must return a view callable. The view callable returned by the factory must implement the ``context, request`` view callable calling convention. For example:: import time def wrapper_factory(view_callable, request, exc): def wrapper(context, request): start = time.time() result = view_callable(context, request) end = time.time() request.view_timing = end - start return result return wrapper The ``view_callable`` argument to the factory will be the view callable found by Pyramid via view lookup. The ``request`` argument to the factory will be the current request. The ``exc`` argument to the factory will be an Exception object if the found view is an exception view; it will be ``None`` otherwise. View wrappers only last for the duration of a single request. You can add such a factory for every request by using the ``pyramid.events.NewRequest`` subscriber:: from pyramid.events import subscriber, NewRequest @subscriber(NewRequest) def newrequest(event): event.request.add_view_wrapper(wrapper_factory) If more than one view wrapper is registered during a single request, a 'later' view wrapper factory will be called with the result of its directly former view wrapper factory as its ``view_callable`` argument; this chain will be returned to Pyramid as a single view callable.
2011-07-23dont wrap a view callable if it's NoneChris McDonough
2011-07-23Merge branch 'master' into wrapviewsChris McDonough
2011-07-23- The ``pyramid.events.BeforeRender`` event now has an attribute namedChris McDonough
``rendering_val``. This can be used to introspect the value returned by a view in a BeforeRender subscriber.
2011-07-23first cutChris McDonough
2011-07-21- Change all scaffolding templates that point to docs.pylonsproject.org toChris McDonough
use ``/projects/pyramid/current`` rather than ``/projects/pyramid/dev``.
2011-07-21- Added the ``pyramid.renderers.null_renderer`` object as an API. The nullChris McDonough
renderer is an object that can be used in advanced integration cases as input to the view configuration ``renderer=`` argument. When the null renderer is used as a view renderer argument, Pyramid avoids converting the view callable result into a Response object. This is useful if you want to reuse the view configuration and lookup machinery outside the context of its use by the Pyramid router. This feature was added for consumption by the ``pyramid_rpc`` package, which uses view configuration and lookup outside the context of a router in exactly this way. ``pyramid_rpc`` has been broken under 1.1 since 1.1b1; adding it allows us to make it work again.
2011-07-21- Add a deprecation warning for non-API functionChris McDonough
``pyramid.renderers.renderer_from_name`` which has seen use in the wild. - Add a ``clone`` method to ``pyramid.renderers.RendererHelper`` for use by the ``pyramid.view.view_config`` decorator.
2011-07-21commentChris McDonough
2011-07-21- Remove ``compat`` code that served only the purpose of providing backwardsChris McDonough
compatibility with Python 2.4.
2011-07-18Merge branch 'master' of github.com:Pylons/pyramidChris McDonough
2011-07-18move import statementChris McDonough
2011-07-17fix typo in urls.py :: current_route_urlmichr
2011-07-16not reusing thisChris McDonough
2011-07-16- Change paster pviews and paster proutes to use bootstrap.Chris McDonough
2011-07-16Added test coverage for 'PShellCommand'.Michael Merickel
2011-07-16Updated 'pshell' to support the new bootstrap api.Michael Merickel
2011-07-16Reworked pyramid.scripting. Modified docs and made make_request private.Michael Merickel
Renamed make_request to _make_request to make clear that it's not a private API. p.scripting.prepare now raises an exception if no valid pyramid app can be found to avoid obscure errors later on.
2011-07-16Modified the order of the WeakOrderedSet to remember the most recent.Michael Merickel
2011-07-16- Omit custom environ variables when rendering a custom exception template inChris McDonough
``pyramid.httpexceptions.WSGIHTTPException._set_default_attrs``; stringifying thse may trigger code that should not be executed; see https://github.com/Pylons/pyramid/issues/239 Closes #239
2011-07-16- Added a section entitled "Writing a Script" to the "Command-Line Pyramid"Chris McDonough
chapter.
2011-07-15add not-for-civilians warningsChris McDonough
2011-07-15remove bogus information about route_name, refer to the right method of ↵Chris McDonough
Configurator when describing global_registries, add http_cache newness warning
2011-07-15typoChris McDonough
2011-07-15note that make_app mutates global_registriesChris McDonough
2011-07-15silence coverage warningChris McDonough
2011-07-15- get_root2 -> prepareChris McDonough
- change prepare return value to a dict, and return the registry, request, etc - various docs and changelog entries.
2011-07-15add description of return valueChris McDonough
2011-07-15Merge branch 'master' into mmerickel-feature.scriptingChris McDonough
2011-07-15Merge branch 'master' of github.com:Pylons/pyramidChris McDonough
2011-07-15fix Jython test failuresChris McDonough
2011-07-15Use assertFalse instead of deprecated failIfBrian Sutherland
2011-07-15deshadow testChris McDonough
2011-07-14Modified tests to use global_registries.remove() instead of relying on gc.Michael Merickel
2011-07-14Added test coverage for p.paster.bootstrap.Michael Merickel