2016-08-14 10:35:14 +00:00
|
|
|
# pylint: disable=invalid-name
|
|
|
|
pre_hooks = []
|
|
|
|
post_hooks = []
|
|
|
|
|
2016-08-14 12:22:53 +00:00
|
|
|
|
2016-08-14 10:35:14 +00:00
|
|
|
def pre_hook(handler):
|
|
|
|
pre_hooks.append(handler)
|
|
|
|
|
2016-08-14 12:22:53 +00:00
|
|
|
|
2016-08-14 10:35:14 +00:00
|
|
|
def post_hook(handler):
|
|
|
|
post_hooks.insert(0, handler)
|