summaryrefslogtreecommitdiff
path: root/CHANGES.txt
AgeCommit message (Collapse)Author
2011-09-02prep for 1.2a4Chris McDonough
2011-09-02remove; too complex to document hereChris McDonough
2011-09-01- Added a "Fixing HTTP vs. HTTP When Deploying Behind a Proxy" section to theChris McDonough
"Virtual Hosting" chapter.
2011-08-31- Undeprecated ``pyramid.traversal.find_model``,Chris McDonough
``pyramid.traversal.model_path``, ``pyramid.traversal.model_path_tuple``, and ``pyramid.url.model_url``, which were all deprecated in Pyramid 1.0. There's just not much cost to keeping them around forever as aliases to their renamed ``resource_*`` prefixed functions. - Undeprecated ``pyramid.view.bfg_view``, which was deprecated in Pyramid 1.0. This is a low-cost alias to ``pyramid.view.view_config`` which we'll just keep around forever.
2011-08-31- The ``request_method`` predicate argument toChris McDonough
``pyramid.config.Configurator.add_view`` and ``pyramid.config.Configurator.add_route`` is now permitted to be a tuple of HTTP method names. Previously it was restricted to being a string representing a single HTTP method name. - Move add_view tests and tween tests to more reasonable places.
2011-08-31- Support an ``onerror`` keyword argument toChris McDonough
``pyramid.config.Configurator.scan()``. This onerror keyword argument is passed to ``venusian.Scanner.scan()`` to influence error behavior when an exception is raised during scanning. - Pyramid now requires Venusian 1.0a1 or better to support the ``onerror`` keyword argument to ``pyramid.config.Configurator.scan``. - Move test fixtures around so test_config tests are not looking "up" for fixtures.
2011-08-29prep for 1.2a3Chris McDonough
2011-08-29- The ``settings`` object emitted a deprecation warning any timeChris McDonough
``__getattr__`` was called upon it. However, there are legitimate situations in which ``__getattr__`` is called on arbitrary objects (e.g. ``hasattr``). Now, the ``settings`` object only emits the warning upon successful lookup.
2011-08-29- Pyramid did not properly generate static URLs usingChris McDonough
``pyramid.url.static_url`` when passed a caller-package relative path due to a refactoring. Closes #258.
2011-08-28- Use ``config.with_package`` in view_config decorator rather thanChris McDonough
manufacturing a new renderer helper (cleanup).
2011-08-27prep for 1.2a2Chris McDonough
2011-08-26- A session factory can now be passed in using the dotted name syntax.Chris McDonough
2011-08-26- An include could not set a root factory successfully because theChris McDonough
Configurator constructor unconditionally registered one that would be treated as if it were "the word of the user".
2011-08-25note changeChris McDonough
2011-08-24- When a ``renderers=`` argument is not specified to the ConfiguratorChris McDonough
constructor, eagerly register and commit the default renderer set. This permits the overriding of the default renderers, which was broken in 1.2a1 without a commit directly after Configurator construction.
2011-08-24prep for 1.2a1Chris McDonough
2011-08-23add explanationsChris McDonough
2011-08-23add changesChris McDonough
2011-08-22- Move the ``OverrideProvider``, ``PackageOverrides``, ``DirectoryOverride``,Chris McDonough
and ``FileOverride`` classes from ``pyramid.asset`` to ``pyramid.config.assets``.
2011-08-22- Move the ``Settings`` class from ``pyramid.settings`` toChris McDonough
``pyramid.config.settings``.
2011-08-22- Moved the ``StaticURLInfo`` class from ``pyramid.static`` toChris McDonough
``pyramid.config.views``.
2011-08-22move 1.1 stuff to HISTORYChris McDonough
2011-08-20- The ``RemoteUserAuthenticationPolicy ``, ``AuthTktAuthenticationPolicy``,Chris McDonough
and ``SessionAuthenticationPolicy`` constructors now accept an additional keyword argument named ``debug``. By default, this keyword argument is ``False``. When it is ``True``, debug information will be sent to the Pyramid debug logger (usually on stderr) when the ``authenticated_userid`` or ``effective_principals`` method is called on any of these policies. The output produced can be useful when trying to diagnose authentication-related problems.
2011-08-20- The ``pyramid.request.Request.static_url`` API (and its brethrenChris McDonough
``pyramid.request.Request.static_path``, ``pyramid.url.static_url``, and ``pyramid.url.static_path``) now accept an asbolute filename as a "path" argument. This will generate a URL to an asset as long as the filename is in a directory which was previously registered as a static view. Previously, trying to generate a URL to an asset using an absolute file path would raise a ValueError.
2011-08-20add static_path function to url and static_path method to requestChris McDonough
2011-08-20- New request methods: ``current_route_url``, ``current_route_path``.Chris McDonough
- New function in ``pyramid.url``: ``current_route_path``.
2011-08-19- Better Mako rendering exceptions viaChris McDonough
``pyramid.mako_templating.MakoRenderingException``
2011-08-18coverageChris McDonough
2011-08-18- Pyramid no longer eagerly commits some default configuration statements atChris McDonough
Configurator construction time, which permits values passed in as constructor arguments (e.g. ``authentication_policy`` and ``authorization_policy``) to override the same settings obtained via an "include".
2011-08-16Garden.Chris McDonough
2011-08-15- Refactor ``pyramid.config`` into a package.Chris McDonough
2011-08-15- New methods of the ``pyramid.config.Configurator`` class:Chris McDonough
``set_authentication_policy`` and ``set_authorization_policy``. These are meant to be consumed mostly by add-on authors.
2011-08-14- The ZODB wiki tutorial now uses the ``pyramid_zodbconn`` package ratherChris McDonough
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.
2011-08-14- ``pyramid.testing.DummyRequest`` now implements theChris McDonough
``add_finished_callback`` and ``add_response_callback`` methods.
2011-08-14- All tutorials now use - The ``route_url``, ``route_path``,Chris McDonough
``resource_url``, ``static_url``, and ``current_route_url`` methods of the request rather than the function variants imported from ``pyramid.url``.
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- The ``settings`` dictionary now raises a deprecation warning when youChris McDonough
attempt to access its values via ``__getattr__`` instead of via ``__getitem__``.
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-13- WSGIHTTPException (HTTPFound, HTTPNotFound, etc) now has a new API namedChris McDonough
"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.
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-12- Pyramid now relies on PasteScript >= 1.7.4. This version contains aChris McDonough
feature important for allowing flexible logging configuration.
2011-08-12garden changes; fix docs renderingChris 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-10- Fixed an issue with the default renderer not working at certain times. SeeChris McDonough
https://github.com/Pylons/pyramid/issues/249 Closes #249.
2011-08-10add note about NO_PERMISSION_REQUIREDChris McDonough
2011-08-06improve changes docsChris 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-30note prefixesChris McDonough
2011-07-28add some edits to the docs for response_adapter decorator; fix renderingsChris McDonough