Commit d23a31a3 authored by Aurel's avatar Aurel

tuplize cell_list in order no to lose data due to del


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@82 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 1bc0a8bc
...@@ -280,11 +280,11 @@ class Packet(object): ...@@ -280,11 +280,11 @@ class Packet(object):
'broken node disallowed error: ' + error_message) 'broken node disallowed error: ' + error_message)
def oidNotFound(self, msg_id, error_message): def oidNotFound(self, msg_id, error_message):
return self.error(msg_id, OID_NOT_FOUND_CODE, return self.error(msg_id, OID_NOT_FOUND_CODE,
'oid not found: ' + error_message) 'oid not found: ' + error_message)
def tidNotFound(self, msg_id, error_message): def tidNotFound(self, msg_id, error_message):
return self.error(msg_id, TID_NOT_FOUND_CODE, return self.error(msg_id, TID_NOT_FOUND_CODE,
'tid not found: ' + error_message) 'tid not found: ' + error_message)
def ping(self, msg_id): def ping(self, msg_id):
...@@ -781,7 +781,7 @@ class Packet(object): ...@@ -781,7 +781,7 @@ class Packet(object):
cell = unpack('!16sH', self._body[index:index+18]) cell = unpack('!16sH', self._body[index:index+18])
index += 18 index += 18
cell_list.append(cell) cell_list.append(cell)
row_list.append((offset, cell_list)) row_list.append((offset, tuple(cell_list)))
del cell_list[:] del cell_list[:]
except: except:
raise ProtocolError(self, 'invalid send partition table') raise ProtocolError(self, 'invalid send partition table')
......
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