mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 22:16:30 +03:00
rename hooks to use "ac_" (account) and "dc_" (global)
This commit is contained in:
@@ -38,9 +38,9 @@ class IOThreads:
|
||||
|
||||
@contextmanager
|
||||
def log_execution(self, message):
|
||||
self.account.log_line(message + " START")
|
||||
self.account.ac_log_line(message + " START")
|
||||
yield
|
||||
self.account.log_line(message + " FINISHED")
|
||||
self.account.ac_log_line(message + " FINISHED")
|
||||
|
||||
def stop(self, wait=False):
|
||||
self._thread_quitflag = True
|
||||
@@ -68,7 +68,7 @@ class IOThreads:
|
||||
ev = next(it)
|
||||
except StopIteration:
|
||||
break
|
||||
self.account.log_line("calling hook name={} kwargs={}".format(ev.name, ev.kwargs))
|
||||
self.account.ac_log_line("calling hook name={} kwargs={}".format(ev.name, ev.kwargs))
|
||||
ev.call_hook()
|
||||
|
||||
def imap_thread_run(self):
|
||||
|
||||
Reference in New Issue
Block a user