def pre_prepare_second_call(**kwargs):
"""
this function gets called prior to an issued prepare but gets
called 'after' the first pre_prepare() call identified above
If you return False here, you will skip the preparation entirely
"""
logger.info(
'DEBUG HOOK pre_prep()\n{kwargs}'.format(
kwargs=pformat(kwargs, indent=4, depth=2),
)
)
# Below is an example of how you can tag 1 function to 2 different
# kinds of hooks:
评论列表
文章目录