summaryrefslogtreecommitdiff
path: root/CHANGES.txt
AgeCommit message (Collapse)Author
2010-11-20- Fix configurator to not convert ``ImportError`` to ``ConfigurationError``Chris McDonough
if the import that failed was unrelated to the import requested via a dotted name when resolving dotted names (such as view dotted names).
2010-11-19- Remove calls to config.begin()/config.end() from startup config code inChris McDonough
tutorials and paster templates (no longer required).
2010-11-18Merge branch 'master' of github.com:Pylons/pyramidBen Bangert
2010-11-18- URL Dispatch now uses the form ``{marker}`` to denote a replace marker inBen Bangert
the route pattern instead of ``:marker``. The old syntax is still backwards compatible and accepted. The new format allows a regular expression for that marker location to be used instead of the default ``[^/]+``, for example ``{marker:\d+}`` is now valid to require the marker to be digits.
2010-11-18- Make test suite pass on PyPy (Chameleon doesn't work).Chris McDonough
2010-11-18Gardening.Ben Bangert
2010-11-18Merge branch 'master' of github.com:Pylons/pyramidBen Bangert
2010-11-18- URL Dispatch now allows for replacement markers to be located anywhereBen Bangert
in the pattern, instead of immediately following a ``/``. - Added ``marker_pattern`` option to ``add_route`` to supply a dict of regular expressions to be used for markers in the pattern instead of the default regular expression that matched everything except a ``/``.
2010-11-18- Fix apparent failures when calling ``pyramid.traversal.find_model(root,Chris McDonough
path)`` or ``pyramid.traversal.traverse(path)`` when ``path`` is (erroneously) a Unicode object. The user is meant to pass these APIs a string object, never a Unicode object. In practice, however, users indeed pass Unicode. Because the string that is passed must be ASCII encodeable, now, if they pass a Unicode object, its data is eagerly converted to an ASCII string rather than being passed along to downstream code as a convenience to the user and to prevent puzzling second-order failures from cropping up (all failures will occur within ``pyramid.traversal.traverse`` rather than later down the line as the result of calling ``traversal_path``).
2010-11-18- Make test suite pass on Jython (requires PasteScript trunk, presumably toChris McDonough
be 1.7.4).
2010-11-17- Add a ``pyramid.url.route_path`` API, allowing folks to generate relativeChris McDonough
URLs. Calling ``route_path`` is the same as calling ``pyramid.url.route_url`` with the argument ``_app_url`` equal to the empty string. - Add a ``pyramid.request.Request.route_path`` API. This is a convenience method of the request which calls ``pyramid.url.route_url``.
2010-11-17- Replace Twill with WebTest in internal integration tests (avoid deprecationChris McDonough
warnings generated by Twill).
2010-11-17- Removed ``zodbsessions`` tutorial chapter. It's still useful, but we nowChris McDonough
have a SessionFactory abstraction which competes with it, and maintaining documentation on both ways to do it is a distraction.
2010-11-17- The ``pyramid_alchemy`` paster template had a typo, preventing an importChris McDonough
from working.
2010-11-16point at correct location of get_current_registryChris McDonough
2010-11-16- Add deprecation warning for import of ``pyramid.zcml.zcml_configure`` andChris McDonough
``pyramid.zcml.file_configure``. - The ``pyramid.testing.zcml_configure`` API has been removed. It had been advertised as removed since 1.2a1, but hadn't actually been.
2010-11-16- The ``pyramid.settings.get_settings`` API is now deprecated. UseChris McDonough
``pyramid.threadlocals.get_registry().settings`` instead or use the ``settings`` attribute of the registry available from the request (``request.registry.settings``).
2010-11-16- Add deprecation warnings to import of ``pyramid.chameleon_text`` andChris McDonough
``pyramid.chameleon_zpt`` of ``get_renderer``, ``get_template``, ``render_template``, and ``render_template_to_response``.
2010-11-16back to developmentChris McDonough
2010-11-16prep for 1.0a3Chris McDonough
2010-11-16- Added Mako TemplateLookup settings for ``mako.error_handler``,Ben Bangert
``mako.default_filters``, and ``mako.imports``.
2010-11-15add convenience static_url method to requestChris McDonough
2010-11-15- Internal: Chameleon template renderers now accept two arguments: ``path``Chris McDonough
and ``lookup``. ``Lookup`` will be an instance of a lookup class which supplies (late-bound) arguments for debug, reload, and translate. Any third-party renderers which use (the non-API) function ``pyramid.renderers.template_renderer_factory`` will need to adjust their implementations to obey the new callback argument list. This change was to kill off inappropriate use of threadlocals.
2010-11-12- Internal: ZCML directives no longer call get_current_registry() if there'sChris McDonough
a ``registry`` attribute on the ZCML context (kill off use of threadlocals).
2010-11-11FeaturesChris McDonough
-------- - The ``settings`` object which used to be available only when ``request.settings.get_settings`` was called is now available as ``registry.settings`` (e.g. ``request.registry.settings`` in view code). Deprecations ------------ - Obtaining the ``settings`` object via ``registry.{get|query}Utility(ISettings)`` is now deprecated. Instead, obtain the ``settings`` object via the ``registry.settings`` attribute. A backwards compatibility shim was added to the registry object to register the settings object as an ISettings utility when ``setattr(registry, 'settings', foo)`` is called, but it will be removed in a later release. - Obtaining the ``settings`` object via ``pyramid.settings.get_settings`` is now deprecated. Obtain it as the ``settings`` attribute of the registry now (obtain the registry via ``pyramid.threadlocal.get_registry`` or as ``request.registry``).
2010-11-11- SQLAlchemy+urldispach wiki (``wiki2``) tutorial updated due to changes toChris McDonough
``pyramid_routesalchemy`` paster template.
2010-11-10- New API methods for ``pyramid.request.Request``: ``model_url`` andChris McDonough
``route_url``. These are simple passthroughs for their respective functions in ``pyramid.url``. - Documented the ``matchdict`` and ``matched_route`` attributes of the request object in the Request API documentation.
2010-11-10- New API method: ``pyramid.settings.asbool``.Chris McDonough
2010-11-10Added class vars matchdict and matched_route toChris Rossi
pyramid.request.Request. Each is set to None.
2010-11-10- The pylons_* paster template used the same stringChris McDonough
(``your_app_secret_string``) for the ``session.secret`` setting in the generated ``development.ini``. This was a security risk if left unchanged in a project that used one of the templates to produce production applications. It now uses a randomly generated string.
2010-11-10add a note about tutorial updatesChris McDonough
2010-11-10FeaturesChris McDonough
-------- - Normalized all paster templates: each now uses the name ``main`` to represent the function that returns a WSGI application, each now uses WebError, each now has roughly the same shape of development.ini style. Bug Fixes --------- - The pylons_* paster templates erroneously used the ``{squiggly}`` routing syntax as the pattern supplied to ``add_route``. This style of routing is not supported. They were replaced with ``:colon`` style route patterns.
2010-11-09back to developmentChris McDonough
2010-11-09prep for 1.0a2Chris McDonough
2010-11-09- All references to Pyramid-the-application were changed from :mod:`pyramid`Chris McDonough
to :app:`Pyramid`. A custom role setting was added to ``docs/conf.py`` to allow for this. (internal)
2010-11-07move changelog entry to the right placeChris McDonough
2010-11-07- All references to events by interfaceChris McDonough
(e.g. ``pyramid.interfaces.INewRequest``) have been changed to reference their concrete classes (e.g. ``pyramid.events.NewRequest``) in documentation about making subscriptions.
2010-11-05back to developmentChris McDonough
2010-11-05prep for 1.0a1 releaseChris McDonough
2010-11-05remove untruthsChris McDonough
2010-11-04- The ``request_type`` argument to the ``view`` ZCML directive, theChris McDonough
``pyramid.configuration.Configurator.add_view`` method, or the ``pyramid.view.view_config`` decorator (nee ``bfg_view``) is no longer permitted to be one of the strings ``GET``, ``HEAD``, ``PUT``, ``POST`` or ``DELETE``, and now must always be an interface. Accepting the method-strings as ``request_type`` was a backwards compatibility strategy servicing repoze.bfg 1.0 applications. Use the ``request_method`` parameter instead to specify that a view a string request-method predicate.
2010-11-04- The SQL Wiki tutorial was updated to take into account changes to theChris McDonough
``pyramid_routesalchemy`` paster template.
2010-11-04- The ZODB Wiki tutorial was updated to take into account changes to theChris McDonough
``pyramid_zodb`` paster template.
2010-11-04noteChris McDonough
2010-11-04note imperative changesChris McDonough
2010-11-02- The default ``cookie_name`` value of the ``authtktauthenticationpolicy`` ZCMLChris McDonough
now defaults to ``auth_tkt`` (it used to default to ``repoze.bfg.auth_tkt``). - The default ``cookie_name`` value of the ``pyramid.authentication.AuthTktAuthenticationPolicy`` constructor now defaults to ``auth_tkt`` (it used to default to ``repoze.bfg.auth_tkt``).
2010-11-02update latex indexChris McDonough
2010-11-02- Remove references to 'WebOb' Response and just call it 'Response', and noteChris McDonough
that it is imported from pyramid. API docs can mention its inheritance from webob (aka "Provide a webob.Response class facade for forward compat").
2010-11-02- The values ``bfg_localizer`` and ``bfg_locale_name`` kept on the requestChris McDonough
during internationalization were never APIs. These however have changed to ``localizer`` and ``locale_name``, respectively.
2010-11-02- The presence of the key ``repoze.bfg.message`` in the WSGI environment whenChris McDonough
an exception occurs is now deprecated. Instead, code which relies on this environ value should use the ``exception`` attribute of the request (e.g. ``request.exception[0]``) to retrieve the message.