summaryrefslogtreecommitdiff
path: root/docs
AgeCommit message (Collapse)Author
2011-08-14- The ``route_url``, ``route_path``, ``resource_url``, ``static_url``, andChris McDonough
``current_route_url`` functions in the ``pyramid.url`` package now delegate to a method on the request they've been passed, instead of the other way around. The pyramid.request.Request object now inherits from a mixin named pyramid.url.URLMethodsMixin to make this possible, and all url/path generation logic is embedded in this mixin. - Narrative and API documentation which used the ``route_url``, ``route_path``, ``resource_url``, ``static_url``, and ``current_route_url`` functions in the ``pyramid.url`` package have now been changed to use eponymous methods of the request instead.
2011-08-14- Added the ``pyramid.interfaces.IDict`` interface representing the methodsChris McDonough
of a dictionary, for documentation purposes only (IMultiDict and IBeforeRender inherit from it). - Previously the ``pyramid.events.BeforeRender`` event *wrapped* a dictionary (it addressed it as its ``_system`` attribute). Now it *is* a dictionary (it inherits from ``dict``), and it's the value that is passed to templates as a top-level dictionary.
2011-08-13Require that tween_factory argument to add_tween be a dotted name.Chris McDonough
2011-08-13disallow adding a tween factory which is an instance without passing its ↵Chris McDonough
globally importable name
2011-08-13mention pyramid_exclogChris McDonough
2011-08-13- Added a Logging chapter to the narrative docs (based on the Pylons loggingChris McDonough
docs, thanks Phil).
2011-08-13- Projects created via a scaffold no longer depend on the ``WebError``Chris McDonough
package at all; configuration in the ``production.ini`` file which used to require its ``error_catcher`` middleware has been removed. Configuring error catching / email sending is now the domain of the ``pyramid_exclog`` package (see https://docs.pylonsproject.org/projects/pyramid_exclog/dev/).
2011-08-12reduce awkwardness of phrasingChris McDonough
2011-08-12Merge branch 'fix.tween-graph'Michael Merickel
2011-08-12Updated the docs with the new over/under tuples.Michael Merickel
2011-08-12garden changes; fix docs renderingChris McDonough
2011-08-12add pyramid.tweens configuration value docsChris McDonough
2011-08-11fix docs, scaffolds, and tutorials to use pyramid.includesChris McDonough
2011-08-11add docs for pyramid.includes; allow space-separated or cr separated items ↵Chris McDonough
or both for tweens and includes
2011-08-11pyramid_tm->tmChris McDonough
2011-08-11mod->termChris McDonough
2011-08-10- Added a ``route_prefix`` argument to theChris McDonough
``pyramid.config.Configurator.include`` method. This argument allows you to compose URL dispatch applications together. See the section entitled "Using a Route Prefix to Compose Applications" in the "URL Dispatch" narrative documentation chapter. - Added a section entitled "Using a Route Prefix to Compose Applications" to the "URL Dispatch" narrative documentation chapter.
2011-08-10trunk is 1.2dev, who are we foolingChris McDonough
2011-08-09Added the `pyramid.security.NO_PERMISSION_REQUIRED` constant.Michael Merickel
Removed the undocumented version from pyramid.interfaces.
2011-08-10show members for event interfacesChris McDonough
2011-08-09Merge branch 'scafftween'Chris McDonough
2011-08-09convert tutorials to pyramid_tm+pyramid_debugtoolbarChris McDonough
2011-08-09add the debug imageChris McDonough
2011-08-09instructions about how to turn the toolbar offChris McDonough
2011-08-09fix project.rst to deal with scaffold changesChris McDonough
2011-08-09dont call hook_zca when we already are using the global regChris McDonough
2011-08-08document under and over paramsChris McDonough
2011-08-06docs renderingChris McDonough
2011-08-06change return value of tween to just responseChris McDonough
2011-08-06add tweens module, add docs for ptweens and tweens to hooksChris McDonough
2011-08-06add glossary entry for tweenChris McDonough
2011-07-31- A new attribute is available on request objects: ``exc_info``. Its valueChris McDonough
will be ``None`` until an exception is caught by the Pyramid router, after which it will be the result of ``sys.exc_info()``.
2011-07-31updated wiki tutorials cssBlaise Laflamme
2011-07-30Updated all of the docs to reflect the new pyramid.* settings prefix.Michael Merickel
2011-07-28add some edits to the docs for response_adapter decorator; fix renderingsChris McDonough
2011-07-28mergeChris McDonough
2011-07-24Rewrote bad sentenceCarlos de la Guardia
2011-07-24missing wordCarlos de la Guardia
2011-07-24Removed extra 'if'Carlos de la Guardia
2011-07-24typoCarlos de la Guardia
2011-07-24extra 's' removedCarlos de la Guardia
2011-07-23replace extra 'the' with 'be'Carlos de la Guardia
2011-07-23Removed repetitive and badly formed sentenceCarlos de la Guardia
2011-07-24Merge branch 'master' of github.com:Pylons/pyramidChris McDonough
2011-07-24fix merge conflictsChris McDonough
2011-07-23typoCarlos de la Guardia
2011-07-23remove extra wordCarlos de la Guardia
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.