Commit c4ee7abf authored by Ivan Tyagov's avatar Ivan Tyagov Committed by Klaus Wölfel

Use latest API.

parent a8774b21
...@@ -19,7 +19,7 @@ def DataBucketStream_getChecksumListFromNEONodeListForKey(self, \ ...@@ -19,7 +19,7 @@ def DataBucketStream_getChecksumListFromNEONodeListForKey(self, \
checksum_list = [] checksum_list = []
# get directly checksum as we have access to data stream over self # get directly checksum as we have access to data stream over self
data = self.getBucket(key) data = self.getBucketByKey(key)
data = data[:threshold] data = data[:threshold]
checksum = hashlib.sha256(data).hexdigest() checksum = hashlib.sha256(data).hexdigest()
checksum_list.append(checksum) checksum_list.append(checksum)
...@@ -38,7 +38,7 @@ def DataBucketStream_getChecksumListFromNEONodeListForKey(self, \ ...@@ -38,7 +38,7 @@ def DataBucketStream_getChecksumListFromNEONodeListForKey(self, \
root = conn.root() root = conn.root()
data_stream_id = self.getId() data_stream_id = self.getId()
data_stream = root['Application'].erp5.data_stream_module[data_stream_id] data_stream = root['Application'].erp5.data_stream_module[data_stream_id]
data = data_stream.getBucket(key) data = data_stream.getBucketByKey(key)
data = data[:threshold] data = data[:threshold]
conn.close() conn.close()
db.close() db.close()
......
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