Commit 1ec573e1 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Node's ask() must always match Connection's ask()

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1893 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 48980ffe
...@@ -39,9 +39,9 @@ class Node(object): ...@@ -39,9 +39,9 @@ class Node(object):
assert self.isConnected(), 'Not connected' assert self.isConnected(), 'Not connected'
self._connection.notify(packet) self._connection.notify(packet)
def ask(self, packet, timeout=5, additional_timeout=30): def ask(self, packet, *args, **kw):
assert self.isConnected(), 'Not connected' assert self.isConnected(), 'Not connected'
self._connection.ask(packet, timeout, additional_timeout) self._connection.ask(packet, *args, **kw)
def answer(self, packet, msg_id=None): def answer(self, packet, msg_id=None):
assert self.isConnected(), 'Not connected' assert self.isConnected(), 'Not connected'
......
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