Skip to content

HTTPS clone URL

Subversion checkout URL

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

    prep for 1.1.2

    mcdonc authored
  2. @mcdonc

    fix changes

    mcdonc authored
  3. @mcdonc
  4. @mcdonc

    - Fix ``pyramid.config.preserve_view_attrs`` to not choke when the vi…

    mcdonc authored
    …ew it is
    
      passed is ``None`` (FBO: pyramid_formish).
Commits on Aug 13, 2011
  1. @mcdonc

    prep for 1.1.1

    mcdonc authored
Commits on Aug 12, 2011
  1. @rockyburt
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
      again.
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
    …ckwards
    
      compatibility with Python 2.4.
Commits on Jul 20, 2011
  1. @mcdonc

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

    mcdonc authored
    …iness.
    
    - Added more indexing markers to sections in documentation.
Commits on Jul 19, 2011
  1. @mcdonc
Commits on Jul 18, 2011
  1. @mcdonc

    prep for 1.1b4

    mcdonc authored
Commits on Jul 17, 2011
  1. @mcdonc
  2. @mcdonc
  3. @mcdonc
  4. @mcdonc
Commits on Jul 16, 2011
  1. @mcdonc

    - Omit custom environ variables when rendering a custom exception tem…

    mcdonc authored
    …plate in
    
      ``pyramid.httpexceptions.WSGIHTTPException._set_default_attrs``;
      stringifying thse may trigger code that should not be executed; see
      #239
    
    Closes #239
  2. @mcdonc
Commits on Jul 15, 2011
  1. @mcdonc

    prep for 1.1b3

    mcdonc authored
  2. @mcdonc

    - get_root2 -> prepare

    mcdonc authored
    - change prepare return value to a dict, and return the registry,
      request, etc
    
    - various docs and changelog entries.
Commits on Jul 14, 2011
  1. @mcdonc

    typo

    mcdonc authored
  2. @mcdonc

    - Without a mo-file loaded for the combination of domain/locale,

    mcdonc authored
      ``pyramid.i18n.Localizer.pluralize`` run using that domain/locale
      combination raised an inscrutable "translations object has no attr 'plural'
      error.  Now, instead it "works" (it uses a germanic pluralization by
      default).  This is not the "right" thing really (it's nonsensical to try to
      pluralize something without translations for that locale/domain available),
      but it matches the behavior of ``pyramid.i18n.Localizer.translate`` so it's
      at least consistent; see #235.
    
    Closes #235.
  3. @mcdonc

    typo

    mcdonc authored
  4. @mcdonc

    forgot to change whatsnew

    mcdonc authored
  5. @mcdonc

    - New API class: ``pyramid.static.static_view``. This supersedes the

    mcdonc authored
      deprecated ``pyramid.view.static`` class.  ``pyramid.satic.static_view`` by
      default serves up documents as the result of the request's ``path_info``,
      attribute rather than it's ``subpath`` attribute (the inverse was true of
      ``pyramid.view.static``, and still is).  ``pyramid.static.static_view``
      exposes a ``use_subpath`` flag for use when you don't want the static view
      to behave like the older deprecated version.
    
    - The ``pyramid.view.static`` class has been deprecated in favor of the newer
      ``pyramid.static.static_view`` class.  A deprecation warning is raised when
      it is used.  You should replace it with a reference to
      ``pyramid.static.static_view`` with the ``use_subpath=True`` argument.
Commits on Jul 13, 2011
  1. @mcdonc

    - Fix corner case to ease semifunctional testing of views: create a new

    mcdonc authored
      rendererinfo to clear out old registry on a rescan.  See
      #234.
    
    Closes #234.
  2. @mcdonc

    prep for 1.1b2

    mcdonc authored
  3. @mcdonc

    - Views associated with routes with spaces in the route name may not …

    mcdonc authored
    …have
    
      been looked up correctly when using Pyramid with ``zope.interface`` 3.6.4
      and better.
    
    Closes #232.
  4. @mcdonc

    - We now clear ``request.response`` before we invoke an exception vie…

    mcdonc authored
    …w; an
    
      exception view will be working with a request.response that has not been
      touched by any code prior to the exception.
  5. @mcdonc

    - New environment setting ``PYRAMID_PREVENT_HTTP_CACHE`` and new

    mcdonc authored
      configuration file value ``prevent_http_cache``.  These are synomymous and
      allow you to prevent HTTP cache headers from being set by Pyramid's
      ``http_cache`` machinery globally in a process.  see the "Influencing HTTP
      Caching" section of the "View Configuration" narrative chapter and the
      detailed documentation for this setting in the "Environment Variables and
      Configuration Settings" narrative chapter.
    
    - New documentation section in View Configuration narrative chapter:
      "Influencing HTTP Caching".
Commits on Jul 12, 2011
  1. @mcdonc

    - The ``pyramid_routesalchemy`` and ``pyramid_alchemy`` scaffolds

    mcdonc authored
      inappropriately used ``DBSession.rollback()`` instead of
      ``transaction.abort()`` in one place.
    
    - Wiki2 (SQLAlchemy + URL Dispatch) tutorial ``models.initialize_sql`` didn't
      match the ``pyramid_routesalchemy`` scaffold function of the same name; it
      didn't get synchronized when it was changed in the scaffold.
  2. @mcdonc

    - The ``Configurator.add_route`` method allowed two routes with the same

    mcdonc authored
      route to be added without an intermediate ``config.commit()``.  If you now
      receive a ``ConfigurationError`` at startup time that appears to be
      ``add_route`` related, you'll need to either a) ensure that all of your
      route names are unique or b) call ``config.commit()`` before adding a
      second route with the name of a previously added name or c) use a
      Configurator that works in ``autocommit`` mode.
  3. @mcdonc

    - Previously, If a ``BeforeRender`` event subscriber added a value vi…

    mcdonc authored
    …a the
    
      ``__setitem__`` or ``update`` methods of the event object with a key that
      already existed in the renderer globals dictionary, a ``KeyError`` was
      raised.  With the deprecation of the "add_renderer_globals" feature of the
      configurator, there was no way to override an existing value in the
      renderer globals dictionary that already existed.  Now, the event object
      will overwrite an older value that is already in the globals dictionary
      when its ``__setitem__`` or ``update`` is called (as well as the new
      ``setdefault`` method), just like a plain old dictionary.  As a result, for
      maximum interoperability with other third-party subscribers, if you write
      an event subscriber meant to be used as a BeforeRender subscriber, your
      subscriber code will now need to (using ``.get`` or ``__contains__`` of the
      event object) ensure no value already exists in the renderer globals
      dictionary before setting an overriding value.
Something went wrong with that request. Please try again.