From e9dbc92111947aa26e7c21eb0d616b3e5b584e4b Mon Sep 17 00:00:00 2001 From: Graham Dumpleton Date: Wed, 2 Oct 2013 10:35:41 +1000 Subject: [PATCH] Documentation for enabled option to decorator and function wrapper. --- docs/changes.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/changes.rst b/docs/changes.rst index 6f8552a..3e0d28b 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -4,6 +4,16 @@ Changes Version 1.2.0 ------------- +**New Features** + +* Added an 'enabled' option to @decorator and FunctionWrapper which can + be provided a boolean, or a function returning a boolean to allow the + work of the decorator to be disabled dynamically. When a boolean, is + used for @decorator, the wrapper will not even be applied if 'enabled' + is False. If a function, then will be called prior to wrapper being + called and if returns False, then original wrapped function called + directly rather than the wrapper being called. + **Bugs Fixed** * When creating a custom proxy by deriving from ObjectProxy and the custom