~ztk-steering-group/zope.hookable/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
``zope.hookable``
=================

.. image:: https://travis-ci.org/zopefoundation/zope.hookable.png?branch=master
        :target: https://travis-ci.org/zopefoundation/zope.hookable

This package supports the efficient creation of "hookable" objects, which
are callable objects that are meant to be optionally replaced.

The idea is you create a function that does some default thing and make it
hookable. Later, someone can modify what it does by calling its sethook method
and changing its implementation.  All users of the function, including those
that imported it, will see the change.