From d33f742c019afa8a5adfa889c0e02ad17b26bcf9 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 5 Dec 2008 15:55:54 +0000 Subject: Prepare for 0.5.2. --- CHANGES.txt | 11 +++++++++-- docs/conf.py | 4 ++-- setup.py | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 83126b062..07ad19439 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,11 +1,18 @@ -Next release +0.5.2 (12/5/2008) - The component registration handler for views (functions or class instances) now observes component adaptation annotations (see ``zope.component.adaptedBy``) and uses them before the fallback values for ``for_`` and ``request_type``. This change does not affect existing code insomuch as the code does not rely on these - defaults when an annotation is set on the view (unlikely). + defaults when an annotation is set on the view (unlikely). This + means that for a new-style class you can do + ``zope.component.adapts(ISomeContext, ISomeRequest)`` at class + scope or at module scope as a decorator to a bfg view function you + can do ``@zope.component.adapter(ISomeContext, ISomeRequest)``. + This differs from r.bfg.convention inasmuch as you still need to + put something in ZCML for the registrations to get done; it's only + the defaults that will change if these declarations exist. - Strip all slashes from end and beginning of path in clean_path within traversal machinery. diff --git a/docs/conf.py b/docs/conf.py index c3be8683f..e20f63eec 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -51,9 +51,9 @@ copyright = '2008, Agendaless Consulting' # other places throughout the built documents. # # The short X.Y version. -version = '0.5.1' +version = '0.5.2' # The full version, including alpha/beta/rc tags. -release = '0.5.1' +release = '0.5.2' # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: diff --git a/setup.py b/setup.py index fcf932e69..5c9e7b17c 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ # ############################################################################## -__version__ = '0.5.1' +__version__ = '0.5.2' import os -- cgit v1.2.3