Commit 5e972ae7 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Prepare the node manager when the application starts

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1814 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 93838e8c
...@@ -52,6 +52,7 @@ class Application(object): ...@@ -52,6 +52,7 @@ class Application(object):
def __init__(self, config): def __init__(self, config):
NodeManager.init()
# always use default connector for now # always use default connector for now
self.connector_handler = getConnectorHandler() self.connector_handler = getConnectorHandler()
......
...@@ -100,6 +100,8 @@ class Application(object): ...@@ -100,6 +100,8 @@ class Application(object):
"""The client node application.""" """The client node application."""
def __init__(self, master_nodes, name, connector=None, **kw): def __init__(self, master_nodes, name, connector=None, **kw):
NodeManager.init()
# Start polling thread # Start polling thread
self.em = EventManager() self.em = EventManager()
self.poll_thread = ThreadedPoll(self.em) self.poll_thread = ThreadedPoll(self.em)
......
...@@ -42,6 +42,7 @@ class Application(object): ...@@ -42,6 +42,7 @@ class Application(object):
def __init__(self, config): def __init__(self, config):
NodeManager.init()
# always use default connector for now # always use default connector for now
self.connector_handler = getConnectorHandler() self.connector_handler = getConnectorHandler()
......
...@@ -38,6 +38,8 @@ class Application(object): ...@@ -38,6 +38,8 @@ class Application(object):
"""The storage node application.""" """The storage node application."""
def __init__(self, config): def __init__(self, config):
NodeManager.init()
# always use default connector for now # always use default connector for now
self.connector_handler = getConnectorHandler() self.connector_handler = getConnectorHandler()
......
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