Commit 137e2908 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Move handler instanciation into master app instead of identification handler.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1578 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 80cda351
...@@ -802,5 +802,7 @@ class Application(object): ...@@ -802,5 +802,7 @@ class Application(object):
node_ctor = self.nm.createStorage node_ctor = self.nm.createStorage
(uuid, state, handler) = self.identifyStorageNode(uuid, node) (uuid, state, handler) = self.identifyStorageNode(uuid, node)
logging.info('Accept a storage %s (%s)' % (dump(uuid), state)) logging.info('Accept a storage %s (%s)' % (dump(uuid), state))
# create a handler instance
handler = handler(self)
return (uuid, node, state, handler, node_ctor) return (uuid, node, state, handler, node_ctor)
...@@ -67,7 +67,6 @@ class IdentificationHandler(MasterHandler): ...@@ -67,7 +67,6 @@ class IdentificationHandler(MasterHandler):
if node is None: if node is None:
# new node # new node
node = node_ctor(uuid=uuid, address=address) node = node_ctor(uuid=uuid, address=address)
handler = handler(self.app)
# set up the node # set up the node
node.setUUID(uuid) node.setUUID(uuid)
node.setState(state) node.setState(state)
......
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