Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Aug 16, 2011
  1. @mcdonc


    mcdonc authored
Commits on Aug 15, 2011
  1. @mcdonc
  2. @mcdonc

    - New methods of the ``pyramid.config.Configurator`` class:

    mcdonc authored
      ``set_authentication_policy`` and ``set_authorization_policy``.  These are
      meant to be consumed mostly by add-on authors.
  3. @mcdonc

    - The ZODB wiki tutorial now uses the ``pyramid_zodbconn`` package ra…

    mcdonc authored
      than the ``repoze.zodbconn`` package to provide ZODB integration.
    - The ZODB scaffold now uses the ``pyramid_zodbconn`` package rather than the
      ``repoze.zodbconn`` package to provide ZODB integration.
  4. @mcdonc

    - ``pyramid.testing.DummyRequest`` now implements the

    mcdonc authored
      ``add_finished_callback`` and ``add_response_callback`` methods.
Commits on Aug 14, 2011
  1. @mcdonc

    - All tutorials now use - The ``route_url``, ``route_path``,

    mcdonc authored
      ``resource_url``, ``static_url``, and ``current_route_url`` methods of the
      request rather than the function variants imported from ``pyramid.url``.
  2. @mcdonc

    - The ``route_url``, ``route_path``, ``resource_url``, ``static_url``…

    mcdonc authored
    …, and
      ``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.
  3. @mcdonc

    - The ``settings`` dictionary now raises a deprecation warning when you

    mcdonc authored
      attempt to access its values via ``__getattr__`` instead of
      via ``__getitem__``.
  4. @mcdonc

    - Added the ``pyramid.interfaces.IDict`` interface representing the m…

    mcdonc authored
      of a dictionary, for documentation purposes only (IMultiDict and
      IBeforeRender inherit from it).
    - Previously the ```` 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.
Commits on Aug 13, 2011
  1. @mcdonc

    - WSGIHTTPException (HTTPFound, HTTPNotFound, etc) now has a new API …

    mcdonc authored
      "prepare" which renders the body and content type when it is provided with
      a WSGI environ.  Required for debug toolbar.
    - Once ``__call__`` or ``prepare`` is called on a WSGIHTTPException, the body
      will be set, and subsequent calls to ``__call__`` will always return the
      same body.  Delete the body attribute to rerender the exception body.
  2. @mcdonc

    - Added a Logging chapter to the narrative docs (based on the Pylons …

    mcdonc authored
      docs, thanks Phil).
  3. @mcdonc

    - Projects created via a scaffold no longer depend on the ``WebError``

    mcdonc authored
      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
Commits on Aug 12, 2011
  1. @mcdonc

    - Pyramid now relies on PasteScript >= 1.7.4. This version contains a

    mcdonc authored
      feature important for allowing flexible logging configuration.
  2. @mcdonc
Commits on Aug 11, 2011
  1. @mcdonc

    - Added a ``route_prefix`` argument to the

    mcdonc authored
      ``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.
Commits on Aug 10, 2011
  1. @mcdonc
  2. @mcdonc
Commits on Aug 6, 2011
  1. @mcdonc

    improve changes docs

    mcdonc authored
Commits on Jul 31, 2011
  1. @mcdonc

    - A new attribute is available on request objects: ``exc_info``. Its …

    mcdonc authored
      will be ``None`` until an exception is caught by the Pyramid router, after
      which it will be the result of ``sys.exc_info()``.
Commits on Jul 30, 2011
  1. @mcdonc

    note prefixes

    mcdonc authored
Commits on Jul 28, 2011
  1. @mcdonc
Commits on Jul 24, 2011
  1. @mcdonc

    stray hat

    mcdonc authored
  2. @mcdonc

    - The Pyramid debug logger now uses the standard logging configuration

    mcdonc authored
      (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.
  3. @mcdonc

    fix merge conflicts

    mcdonc authored
  4. @mcdonc
  5. @mcdonc

    first cut

    mcdonc authored
Commits on Jul 23, 2011
  1. @mcdonc


    mcdonc authored
  2. @mcdonc

    - New method: ``pyramid.request.Request.add_view_mapper``. A view wra…

    mcdonc authored
    …pper is
      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
       ```` subscriber::
           from import subscriber, NewRequest
           def newrequest(event):
       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
  3. @mcdonc

    - The ```` event now has an attribute named

    mcdonc authored
      ``rendering_val``.  This can be used to introspect the value returned by a
      view in a BeforeRender subscriber.
Commits on Jul 22, 2011
  1. @mcdonc
  2. @mcdonc

    - Change all scaffolding templates that point to docs.pylonsproject.o…

    mcdonc authored
    …rg to
      use ``/projects/pyramid/current`` rather than ``/projects/pyramid/dev``.
  3. @mcdonc

    - Added the ``pyramid.renderers.null_renderer`` object as an API. The…

    mcdonc authored
    … null
      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
Commits on Jul 21, 2011
  1. @mcdonc

    - Add a deprecation warning for non-API function

    mcdonc authored
      ``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.
  2. @mcdonc

    - Remove ``compat`` code that served only the purpose of providing ba…

    mcdonc authored
      compatibility with Python 2.4.
Commits on Jul 20, 2011
  1. @mcdonc

    - Reordered chapters in narrative section for better new user friendl…

    mcdonc authored
    - Added more indexing markers to sections in documentation.
Something went wrong with that request. Please try again.