diff --git a/wo/cli/plugins/clean.py b/wo/cli/plugins/clean.py index 3c00862..ceb1f21 100644 --- a/wo/cli/plugins/clean.py +++ b/wo/cli/plugins/clean.py @@ -92,4 +92,4 @@ def load(app): # register the plugin class.. this only happens if the plugin is enabled app.handler.register(WOCleanController) # register a hook (function) to run after arguments are parsed. - hook.register('post_argument_parsing', wo_clean_hook) + app.hook.register('post_argument_parsing', wo_clean_hook) diff --git a/wo/cli/plugins/debug.py b/wo/cli/plugins/debug.py index 9d0b5f4..51744ee 100644 --- a/wo/cli/plugins/debug.py +++ b/wo/cli/plugins/debug.py @@ -849,4 +849,4 @@ def load(app): # register the plugin class.. this only happens if the plugin is enabled app.handler.register(WODebugController) # register a hook (function) to run after arguments are parsed. - hook.register('post_argument_parsing', wo_debug_hook) + app.hook.register('post_argument_parsing', wo_debug_hook) diff --git a/wo/cli/plugins/import_slow_log.py b/wo/cli/plugins/import_slow_log.py index 63a1896..570b59a 100644 --- a/wo/cli/plugins/import_slow_log.py +++ b/wo/cli/plugins/import_slow_log.py @@ -29,4 +29,4 @@ def load(app): app.handler.register(WOImportslowlogController) # register a hook (function) to run after arguments are parsed. - hook.register('post_argument_parsing', wo_import_slow_log_hook) + app.hook.register('post_argument_parsing', wo_import_slow_log_hook) diff --git a/wo/cli/plugins/info.py b/wo/cli/plugins/info.py index 764a1e2..87d22c0 100644 --- a/wo/cli/plugins/info.py +++ b/wo/cli/plugins/info.py @@ -295,4 +295,4 @@ def load(app): app.handler.register(WOInfoController) # register a hook (function) to run after arguments are parsed. - hook.register('post_argument_parsing', wo_info_hook) + app.hook.register('post_argument_parsing', wo_info_hook) diff --git a/wo/cli/plugins/log.py b/wo/cli/plugins/log.py index 8035eb7..8c6ee23 100644 --- a/wo/cli/plugins/log.py +++ b/wo/cli/plugins/log.py @@ -577,4 +577,4 @@ def load(app): app.handler.register(WOLogGzipController) app.handler.register(WOLogMailController) # register a hook (function) to run after arguments are parsed. - hook.register('post_argument_parsing', wo_log_hook) + app.hook.register('post_argument_parsing', wo_log_hook) diff --git a/wo/cli/plugins/maintenance.py b/wo/cli/plugins/maintenance.py index 1a62fe0..9444fc4 100644 --- a/wo/cli/plugins/maintenance.py +++ b/wo/cli/plugins/maintenance.py @@ -42,4 +42,4 @@ def load(app): # register the plugin class.. this only happens if the plugin is enabled app.handler.register(WOMaintenanceController) # register a hook (function) to run after arguments are parsed. - hook.register('post_argument_parsing', wo_maintenance_hook) + app.hook.register('post_argument_parsing', wo_maintenance_hook) diff --git a/wo/cli/plugins/secure.py b/wo/cli/plugins/secure.py index 6f41ed1..470fcb6 100644 --- a/wo/cli/plugins/secure.py +++ b/wo/cli/plugins/secure.py @@ -221,4 +221,4 @@ class WOSecureController(CementBaseController): def load(app): app.handler.register(WOSecureController) - hook.register('post_argument_parsing', wo_secure_hook) + app.hook.register('post_argument_parsing', wo_secure_hook) diff --git a/wo/cli/plugins/site.py b/wo/cli/plugins/site.py index 912207a..36044a1 100644 --- a/wo/cli/plugins/site.py +++ b/wo/cli/plugins/site.py @@ -2056,4 +2056,4 @@ def load(app): app.handler.register(WOSiteListController) app.handler.register(WOSiteEditController) # register a hook (function) to run after arguments are parsed. - hook.register('post_argument_parsing', wo_site_hook) + app.hook.register('post_argument_parsing', wo_site_hook) diff --git a/wo/cli/plugins/stack.py b/wo/cli/plugins/stack.py index dff3623..32eab17 100644 --- a/wo/cli/plugins/stack.py +++ b/wo/cli/plugins/stack.py @@ -1003,4 +1003,4 @@ def load(app): app.handler.register(WOStackUpgradeController) # register a hook (function) to run after arguments are parsed. - hook.register('post_argument_parsing', wo_stack_hook) + app.hook.register('post_argument_parsing', wo_stack_hook) diff --git a/wo/cli/plugins/sync.py b/wo/cli/plugins/sync.py index 287a05d..209003b 100644 --- a/wo/cli/plugins/sync.py +++ b/wo/cli/plugins/sync.py @@ -96,4 +96,4 @@ def load(app): # register the plugin class.. this only happens if the plugin is enabled app.handler.register(WOSyncController) # register a hook (function) to run after arguments are parsed. - hook.register('post_argument_parsing', wo_sync_hook) + app.hook.register('post_argument_parsing', wo_sync_hook) diff --git a/wo/cli/plugins/update.py b/wo/cli/plugins/update.py index 119f499..6ef7fb8 100644 --- a/wo/cli/plugins/update.py +++ b/wo/cli/plugins/update.py @@ -80,4 +80,4 @@ def load(app): # register the plugin class.. this only happens if the plugin is enabled app.handler.register(WOUpdateController) # register a hook (function) to run after arguments are parsed. - hook.register('post_argument_parsing', wo_update_hook) + app.hook.register('post_argument_parsing', wo_update_hook)