core: twistd plugin refactoring:
initialisation method manage things which must be done once (reactor installation + logging configuration), this method is called when service is created, so we can have the options passed to twistd (necessary to manage logging configuration). The initialisation order is important: for instance, sat_main must be imported after logging initialisation. This refactoring avoid initialisation issue when SàT backend and libervia are both installed as twisted plugins.
This commit is contained in:
parent
d549533f00
commit
74f8765ed2
1 changed files with 12 additions and 7 deletions
|
|
@ -19,8 +19,6 @@
|
|||
|
||||
from sat.core.i18n import _, D_, languageSwitch
|
||||
from twisted.application import service
|
||||
from twisted.internet import glib2reactor
|
||||
glib2reactor.install()
|
||||
from twisted.internet import defer
|
||||
from twisted.words.protocols.jabber import jid
|
||||
from twisted.words.xish import domish
|
||||
|
|
|
|||
Loading…
Reference in a new issue