本文整理汇总了Python中dNG.plugins.hook.Hook.unregister方法的典型用法代码示例。如果您正苦于以下问题:Python Hook.unregister方法的具体用法?Python Hook.unregister怎么用?Python Hook.unregister使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dNG.plugins.hook.Hook
的用法示例。
在下文中一共展示了Hook.unregister方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: stop
# 需要导入模块: from dNG.plugins.hook import Hook [as 别名]
# 或者: from dNG.plugins.hook.Hook import unregister [as 别名]
def stop(self, params = None, last_return = None):
"""
Stop the running GLib based main loop.
:param params: Parameter specified
:param last_return: The return value from the last hook called.
:since: v0.2.00
"""
if (self.mainloop is not None):
# Thread safety
with GlibThread._lock:
if (self.mainloop is not None):
if (self.log_handler is not None): self.log_handler.debug("#echo(__FILEPATH__)# -{0!r}.stop()- (#echo(__LINE__)#)", self, context = "pas_gapi_core")
if (self.mainloop.is_running()):
with ExceptionLogTrap("pas_gapi_core"): self.mainloop.quit()
#
self.mainloop = None
Hook.unregister("dNG.pas.Status.onShutdown", self.stop)
#
#
#
return last_return
示例2: unregister_plugin
# 需要导入模块: from dNG.plugins.hook import Hook [as 别名]
# 或者: from dNG.plugins.hook.Hook import unregister [as 别名]
def unregister_plugin():
"""
Unregister plugin hooks.
:since: v0.2.00
"""
Hook.unregister("dNG.pas.user.Profile.delete", delete)
示例3: unregister_plugin
# 需要导入模块: from dNG.plugins.hook import Hook [as 别名]
# 或者: from dNG.plugins.hook.Hook import unregister [as 别名]
def unregister_plugin():
"""
Unregister plugin hooks.
:since: v0.1.00
"""
Hook.unregister("dNG.pas.Database.applySchema.after", after_apply_schema)
Hook.unregister("dNG.pas.Database.loadAll", load_all)
示例4: unregister_plugin
# 需要导入模块: from dNG.plugins.hook import Hook [as 别名]
# 或者: from dNG.plugins.hook.Hook import unregister [as 别名]
def unregister_plugin():
"""
Unregister plugin hooks.
:since: v0.2.00
"""
Hook.unregister("dNG.pas.http.Server.onStartup", on_startup)
Hook.unregister("dNG.pas.http.Wsgi.onStartup", on_startup)
示例5: unregister_plugin
# 需要导入模块: from dNG.plugins.hook import Hook [as 别名]
# 或者: from dNG.plugins.hook.Hook import unregister [as 别名]
def unregister_plugin():
"""
Unregister plugin hooks.
:since: v0.2.00
"""
Hook.unregister("dNG.pas.upnp.ControlPoint.onDeviceAdded", on_device_added)
Hook.unregister("dNG.pas.upnp.ControlPoint.onStartup", on_startup)
示例6: unregister_plugin
# 需要导入模块: from dNG.plugins.hook import Hook [as 别名]
# 或者: from dNG.plugins.hook.Hook import unregister [as 别名]
def unregister_plugin():
"""
Unregister plugin hooks.
:since: v0.2.00
"""
Hook.unregister("dNG.pas.upnp.Resource.onRootContainerAdded", on_root_container_added)
Hook.unregister("dNG.pas.upnp.Resource.onRootContainerDeleted", on_root_container_deleted)
示例7: unregister_plugin
# 需要导入模块: from dNG.plugins.hook import Hook [as 别名]
# 或者: from dNG.plugins.hook.Hook import unregister [as 别名]
def unregister_plugin():
"""
Unregister plugin hooks.
:since: v0.2.00
"""
Hook.unregister("dNG.pas.user.Profile.changesConfirmed", changes_confirmed)
Hook.unregister("dNG.pas.user.Profile.registrationValidated", registration_validated)
示例8: unregister_plugin
# 需要导入模块: from dNG.plugins.hook import Hook [as 别名]
# 或者: from dNG.plugins.hook.Hook import unregister [as 别名]
def unregister_plugin():
#
"""
Unregister plugin hooks.
:since: v0.1.00
"""
Hook.unregister("dNG.pas.http.Form.sendEMail", send_email)
#
##j## EOF
示例9: unregister_plugin
# 需要导入模块: from dNG.plugins.hook import Hook [as 别名]
# 或者: from dNG.plugins.hook.Hook import unregister [as 别名]
def unregister_plugin():
"""
Unregister plugin hooks.
:since: v1.0.0
"""
Hook.unregister("dNG.pas.http.Server.onShutdown", on_shutdown)
Hook.unregister("dNG.pas.http.Server.onStartup", on_startup)
Hook.unregister("dNG.pas.http.Wsgi.onShutdown", on_shutdown)
Hook.unregister("dNG.pas.http.Wsgi.onStartup", on_startup)
示例10: unregister_plugin
# 需要导入模块: from dNG.plugins.hook import Hook [as 别名]
# 或者: from dNG.plugins.hook.Hook import unregister [as 别名]
def unregister_plugin():
"""
Unregister plugin hooks.
:since: v0.2.00
"""
Hook.unregister("dNG.pas.Status.onShutdown", on_shutdown)
Hook.unregister("dNG.pas.Status.onStartup", on_startup)
Hook.unregister("dNG.pas.Tasks.call", call)
Hook.unregister("dNG.pas.tasks.Persistent.isRegistered", is_persistent_task_registered)
Hook.unregister("dNG.pas.tasks.Persistent.add", add_persistent_task)
Hook.unregister("dNG.pas.tasks.Persistent.call", call_persistent_task)
Hook.unregister("dNG.pas.tasks.Persistent.get", get_persistent_task)
Hook.unregister("dNG.pas.tasks.Persistent.registerTimeout", register_persistent_timeout_task)
Hook.unregister("dNG.pas.tasks.Persistent.remove", remove_persistent_task)
Hook.unregister("dNG.pas.tasks.Persistent.reregisterTimeout", reregister_persistent_timeout_task)
Hook.unregister("dNG.pas.tasks.Persistent.unregisterTimeout", unregister_persistent_timeout_task)