Remove deprecated handler.register

This commit is contained in:
VirtuBox
2019-09-24 00:01:20 +02:00
parent b4fcb78f6b
commit 547b356a76
12 changed files with 23 additions and 23 deletions

View File

@@ -9,4 +9,4 @@ from wo.cli.controllers.base import WOBaseController
def load(app):
handler.register(WOBaseController)
app.handler.register(WOBaseController)

View File

@@ -90,6 +90,6 @@ class WOCleanController(CementBaseController):
def load(app):
# register the plugin class.. this only happens if the plugin is enabled
handler.register(WOCleanController)
app.handler.register(WOCleanController)
# register a hook (function) to run after arguments are parsed.
hook.register('post_argument_parsing', wo_clean_hook)

View File

@@ -847,6 +847,6 @@ class WODebugController(CementBaseController):
def load(app):
# register the plugin class.. this only happens if the plugin is enabled
handler.register(WODebugController)
app.handler.register(WODebugController)
# register a hook (function) to run after arguments are parsed.
hook.register('post_argument_parsing', wo_debug_hook)

View File

@@ -26,7 +26,7 @@ class WOImportslowlogController(CementBaseController):
def load(app):
# register the plugin class.. this only happens if the plugin is enabled
handler.register(WOImportslowlogController)
app.handler.register(WOImportslowlogController)
# register a hook (function) to run after arguments are parsed.
hook.register('post_argument_parsing', wo_import_slow_log_hook)

View File

@@ -292,7 +292,7 @@ class WOInfoController(CementBaseController):
def load(app):
# register the plugin class.. this only happens if the plugin is enabled
handler.register(WOInfoController)
app.handler.register(WOInfoController)
# register a hook (function) to run after arguments are parsed.
hook.register('post_argument_parsing', wo_info_hook)

View File

@@ -571,10 +571,10 @@ class WOLogMailController(CementBaseController):
def load(app):
# register the plugin class.. this only happens if the plugin is enabled
handler.register(WOLogController)
handler.register(WOLogShowController)
handler.register(WOLogResetController)
handler.register(WOLogGzipController)
handler.register(WOLogMailController)
app.handler.register(WOLogController)
app.handler.register(WOLogShowController)
app.handler.register(WOLogResetController)
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)

View File

@@ -40,6 +40,6 @@ class WOMaintenanceController(CementBaseController):
def load(app):
# register the plugin class.. this only happens if the plugin is enabled
handler.register(WOMaintenanceController)
app.handler.register(WOMaintenanceController)
# register a hook (function) to run after arguments are parsed.
hook.register('post_argument_parsing', wo_maintenance_hook)

View File

@@ -220,5 +220,5 @@ class WOSecureController(CementBaseController):
def load(app):
handler.register(WOSecureController)
app.handler.register(WOSecureController)
hook.register('post_argument_parsing', wo_secure_hook)

View File

@@ -2049,11 +2049,11 @@ class WOSiteListController(CementBaseController):
def load(app):
# register the plugin class.. this only happens if the plugin is enabled
handler.register(WOSiteController)
handler.register(WOSiteCreateController)
handler.register(WOSiteUpdateController)
handler.register(WOSiteDeleteController)
handler.register(WOSiteListController)
handler.register(WOSiteEditController)
app.handler.register(WOSiteController)
app.handler.register(WOSiteCreateController)
app.handler.register(WOSiteUpdateController)
app.handler.register(WOSiteDeleteController)
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)

View File

@@ -998,9 +998,9 @@ class WOStackController(CementBaseController):
def load(app):
# register the plugin class.. this only happens if the plugin is enabled
app.handler.register(WOStackController)
handler.register(WOStackStatusController)
handler.register(WOStackMigrateController)
handler.register(WOStackUpgradeController)
app.handler.register(WOStackStatusController)
app.handler.register(WOStackMigrateController)
app.handler.register(WOStackUpgradeController)
# register a hook (function) to run after arguments are parsed.
hook.register('post_argument_parsing', wo_stack_hook)

View File

@@ -94,6 +94,6 @@ class WOSyncController(CementBaseController):
def load(app):
# register the plugin class.. this only happens if the plugin is enabled
handler.register(WOSyncController)
app.handler.register(WOSyncController)
# register a hook (function) to run after arguments are parsed.
hook.register('post_argument_parsing', wo_sync_hook)

View File

@@ -78,6 +78,6 @@ class WOUpdateController(CementBaseController):
def load(app):
# register the plugin class.. this only happens if the plugin is enabled
handler.register(WOUpdateController)
app.handler.register(WOUpdateController)
# register a hook (function) to run after arguments are parsed.
hook.register('post_argument_parsing', wo_update_hook)