Browse Source

updated plugin hook names

bugfixes
harshadyeola 10 years ago
parent
commit
236c8a95fc
  1. 4
      ee/cli/plugins/debug.py
  2. 4
      ee/cli/plugins/import_slow_log.py
  3. 4
      ee/cli/plugins/info.py
  4. 4
      ee/cli/plugins/log.py

4
ee/cli/plugins/debug.py

@ -15,7 +15,7 @@ import signal
import subprocess
def debug_plugin_hook(app):
def ee_debug_hook(app):
# do something with the ``app`` object here.
pass
@ -551,4 +551,4 @@ def load(app):
# register the plugin class.. this only happens if the plugin is enabled
handler.register(EEDebugController)
# register a hook (function) to run after arguments are parsed.
hook.register('post_argument_parsing', debug_plugin_hook)
hook.register('post_argument_parsing', ee_debug_hook)

4
ee/cli/plugins/import_slow_log.py

@ -6,7 +6,7 @@ from ee.core.variables import EEVariables
import os
def import_slow_log_plugin_hook(app):
def ee_import_slow_log_hook(app):
pass
@ -68,4 +68,4 @@ def load(app):
handler.register(EEImportslowlogController)
# register a hook (function) to run after arguments are parsed.
hook.register('post_argument_parsing', import_slow_log_plugin_hook)
hook.register('post_argument_parsing', ee_import_slow_log_hook)

4
ee/cli/plugins/info.py

@ -10,7 +10,7 @@ import os
import configparser
def info_plugin_hook(app):
def ee_info_hook(app):
# do something with the ``app`` object here.
pass
@ -200,4 +200,4 @@ def load(app):
handler.register(EEInfoController)
# register a hook (function) to run after arguments are parsed.
hook.register('post_argument_parsing', info_plugin_hook)
hook.register('post_argument_parsing', ee_info_hook)

4
ee/cli/plugins/log.py

@ -11,7 +11,7 @@ import os
import glob
def log_plugin_hook(app):
def ee_log_hook(app):
# do something with the ``app`` object here.
pass
@ -138,4 +138,4 @@ def load(app):
# register the plugin class.. this only happens if the plugin is enabled
handler.register(EELogController)
# register a hook (function) to run after arguments are parsed.
hook.register('post_argument_parsing', log_plugin_hook)
hook.register('post_argument_parsing', ee_log_hook)

Loading…
Cancel
Save