diff options
author | pazz <patricktotzke@gmail.com> | 2011-06-08 22:50:24 +0100 |
---|---|---|
committer | pazz <patricktotzke@gmail.com> | 2011-06-08 22:50:24 +0100 |
commit | 7348a13e30360b306a55c2a908bb2c1e5e4ff280 (patch) | |
tree | 350a27ccafe91acddfb02b4de395820c285a88de /data | |
parent | 7818844c5836bd655879d8ea6228b68d017b662a (diff) |
hooks
Diffstat (limited to 'data')
-rw-r--r-- | data/example_hooks.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/data/example_hooks.py b/data/example_hooks.py new file mode 100644 index 00000000..2c9baf75 --- /dev/null +++ b/data/example_hooks.py @@ -0,0 +1,5 @@ +# hooks get two parameters, an alot.ui.UI object, and an alt.db.DBManager object +# for all commands X, pre_X gets called before, post_X after X is applied. + +def pre_shutdown(ui,dbman): + ui.logger.info('goodbye!') |