| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2011-07-24 | fix merge conflicts | Chris McDonough | |
| 2011-07-23 | typo | Carlos de la Guardia | |
| 2011-07-23 | remove extra word | Carlos de la Guardia | |
| 2011-07-24 | back this feature out; we'll try a different approach | Chris McDonough | |
| 2011-07-24 | first cut | Chris McDonough | |
| 2011-07-23 | - New method: ``pyramid.request.Request.add_view_mapper``. A view wrapper is | Chris 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-23 | remove extra word | Carlos de la Guardia | |
| 2011-07-23 | Fixed typo | Carlos de la Guardia | |
| 2011-07-23 | Removed extra word, corrected unfinished sentence | Carlos de la Guardia | |
| 2011-07-23 | removed extra word | Carlos de la Guardia | |
| 2011-07-23 | fix typo | Carlos de la Guardia | |
| 2011-07-22 | Fixed formatting fail. | Michael Merickel | |
| 2011-07-22 | s/repoze/pyramid/ | Chris McDonough | |
| 2011-07-21 | add epub and pdf maker scripts | Chris McDonough | |
| 2011-07-21 | prep for 1.1; gather contributors | Chris McDonough | |
| 2011-07-21 | - Change all scaffolding templates that point to docs.pylonsproject.org to | Chris McDonough | |
| use ``/projects/pyramid/current`` rather than ``/projects/pyramid/dev``. | |||
| 2011-07-21 | add nullrenderer to whatsnew | Chris McDonough | |
| 2011-07-21 | - Added the ``pyramid.renderers.null_renderer`` object as an API. The null | Chris 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 | urllib2 example of creating a request suitable for producing a json body | Chris McDonough | |
| 2011-07-20 | add description of keys and values | Chris McDonough | |
| 2011-07-20 | name noncpython versions we work with | Chris McDonough | |
| 2011-07-20 | typo | Chris McDonough | |
| 2011-07-20 | use less awkward language | Chris McDonough | |
| 2011-07-20 | - Reordered chapters in narrative section for better new user friendliness. | Chris McDonough | |
| - Added more indexing markers to sections in documentation. | |||
| 2011-07-20 | add more index markers | Chris McDonough | |
| 2011-07-20 | use env26 | Chris McDonough | |
| 2011-07-19 | - Fixed two typos in wiki2 (SQLA + URL Dispatch) tutorial. | Chris McDonough | |
| 2011-07-19 | remove process=1 option; see ↵ | Chris McDonough | |
| http://stackoverflow.com/questions/6703850/cant-get-pyramid-to-work-with-mod-wsgi | |||
| 2011-07-18 | prep for 1.1b4 | Chris McDonough | |
| 2011-07-16 | ordering | Chris McDonough | |
| 2011-07-16 | - Change paster pviews and paster proutes to use bootstrap. | Chris McDonough | |
| 2011-07-16 | mention manual logging config | Chris McDonough | |
| 2011-07-16 | mention paster pshell using bootstrap | Chris McDonough | |
| 2011-07-16 | Changed the URL generation example to be more practical. | Michael Merickel | |
| 2011-07-16 | Reworked 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-16 | Renamed the 'info' dict to 'env' in scripting. | Michael Merickel | |
| 2011-07-16 | garden | Michael Merickel | |
| 2011-07-16 | Mmm, maybe the bad func name was pasted from an emacs buffer | Carlos de la Guardia | |
| 2011-07-16 | typo in func name | Carlos de la Guardia | |
| 2011-07-16 | promote bootstrap to major feature | Chris McDonough | |
| 2011-07-16 | note version reqt; fix dangling ref | Chris McDonough | |
| 2011-07-16 | - Added a section entitled "Writing a Script" to the "Command-Line Pyramid" | Chris McDonough | |
| chapter. | |||
| 2011-07-15 | remove 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-15 | prep for 1.1b3 | Chris McDonough | |
| 2011-07-15 | - get_root2 -> prepare | Chris McDonough | |
| - change prepare return value to a dict, and return the registry, request, etc - various docs and changelog entries. | |||
| 2011-07-14 | Added test coverage for p.paster.bootstrap. | Michael Merickel | |
| 2011-07-14 | Added p.paster.bootstrap for handling simple loading of INI files. | Michael Merickel | |
| 2011-07-14 | Added p.scripting.get_root2 that doesn't require an app arg. | Michael Merickel | |
| 2011-07-14 | Added some docs for make_request and global_registries. | Michael Merickel | |
| 2011-07-14 | Edited docs/narr/viewconfig.rst via GitHub | AnneGilles | |
