mirror of
https://github.com/chatmail/core.git
synced 2026-05-24 09:16:32 +03:00
rename eventlogger to events
This commit is contained in:
@@ -7,7 +7,7 @@ from .message import Message # noqa
|
|||||||
from .contact import Contact # noqa
|
from .contact import Contact # noqa
|
||||||
from .chat import Chat # noqa
|
from .chat import Chat # noqa
|
||||||
from .hookspec import account_hookimpl, global_hookimpl # noqa
|
from .hookspec import account_hookimpl, global_hookimpl # noqa
|
||||||
from . import eventlogger
|
from . import events
|
||||||
|
|
||||||
from pkg_resources import get_distribution, DistributionNotFound
|
from pkg_resources import get_distribution, DistributionNotFound
|
||||||
try:
|
try:
|
||||||
@@ -39,7 +39,7 @@ def unregister_global_plugin(plugin):
|
|||||||
gm.unregister(plugin)
|
gm.unregister(plugin)
|
||||||
|
|
||||||
|
|
||||||
register_global_plugin(eventlogger)
|
register_global_plugin(events)
|
||||||
|
|
||||||
|
|
||||||
def run_cmdline(argv=None, account_plugins=None):
|
def run_cmdline(argv=None, account_plugins=None):
|
||||||
@@ -60,7 +60,7 @@ def run_cmdline(argv=None, account_plugins=None):
|
|||||||
ac = Account(args.db)
|
ac = Account(args.db)
|
||||||
|
|
||||||
if args.show_ffi:
|
if args.show_ffi:
|
||||||
log = eventlogger.FFIEventLogger(ac, "bot")
|
log = events.FFIEventLogger(ac, "bot")
|
||||||
ac.add_account_plugin(log)
|
ac.add_account_plugin(log)
|
||||||
|
|
||||||
if not ac.is_configured():
|
if not ac.is_configured():
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ from .message import Message
|
|||||||
from .contact import Contact
|
from .contact import Contact
|
||||||
from .tracker import ImexTracker, ConfigureTracker
|
from .tracker import ImexTracker, ConfigureTracker
|
||||||
from . import hookspec
|
from . import hookspec
|
||||||
from .eventlogger import FFIEventLogger, CallbackThread
|
from .events import FFIEventLogger, CallbackThread
|
||||||
|
|
||||||
|
|
||||||
class MissingCredentials(ValueError):
|
class MissingCredentials(ValueError):
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import requests
|
|||||||
from . import Account, const
|
from . import Account, const
|
||||||
from .tracker import ConfigureTracker
|
from .tracker import ConfigureTracker
|
||||||
from .capi import lib
|
from .capi import lib
|
||||||
from .eventlogger import FFIEventLogger, FFIEventTracker
|
from .events import FFIEventLogger, FFIEventTracker
|
||||||
from _pytest.monkeypatch import MonkeyPatch
|
from _pytest.monkeypatch import MonkeyPatch
|
||||||
from _pytest._code import Source
|
from _pytest._code import Source
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user