odoo/openerp/modules
Christophe Simonis 4105b5f028 [ADD] module install/uninstall hooks.
Since 4ec71c74d1, migration scripts
are not executed at module install anymore.
As this behavior was missused as "init" scripts (see [1]), this
commit re-add this possiblity via hooks.

There are 3 hooks that can be declared in the manifest file:
 - pre_init_hook: called before module installation
 - post_init_hook: called after module installation
 - uninstall_hook: called before module uninstallation

Like the "post_load" manifest option, the values for these hooks
must be a string containing the name of a method available at the
module root.
The signatures of these functions are:
 - (cr) for pre_init_hook
 - (cr, registry) for post_init_hook and uninstall_hook

[1] https://bugs.launchpad.net/openobject-server/+bug/1314680
2014-06-07 00:41:29 +02:00
..
__init__.py new test execution engine 2014-02-09 01:40:05 +01:00
db.py [FIX] module: do not recreate categories when updating modules 2012-11-28 19:37:01 +01:00
graph.py [ADD] module install/uninstall hooks. 2014-06-07 00:41:29 +02:00
loading.py [ADD] module install/uninstall hooks. 2014-06-07 00:41:29 +02:00
migration.py [FIX] migration: correct the verification of module version against running server 2014-01-10 17:27:05 +01:00
module.py Allow initialize_sys_path() to be called more than once 2014-05-30 18:25:05 +02:00
registry.py [IMP] test cursor: code cleanup to make it more robust to concurrent accesses 2014-04-14 09:59:06 +02:00