Commit c8c3cfda authored by Grégory Wisniewski's avatar Grégory Wisniewski

Simplify a bit __init__ implementation.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1443 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent a3a7e609
......@@ -237,13 +237,12 @@ class Application(object):
def __init__(self, master_nodes, name, connector=None, **kw):
# XXX: use a configuration entry
em = EventManager()
# Start polling thread
self.poll_thread = ThreadedPoll(em)
self.em = EventManager()
self.poll_thread = ThreadedPoll(self.em)
# Internal Attributes common to all thread
self._db = None
self.name = name
self.em = em
self.connector_handler = getConnectorHandler(connector)
self.dispatcher = Dispatcher()
self.nm = NodeManager()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment