Commit a7ed9e96 authored by Ivan Tyagov's avatar Ivan Tyagov

Fix for 'Redefining built-in 'id'' bt problem ...

See merge request nexedi/wendelin!137
parents e8c0b163 4a331748
try:
start_offset = int(float(start_offset))
end_offset = int(float(end_offset))
data_stream = context.restrictedTraverse(id)
data_stream = context.restrictedTraverse(identity)
data_stream_chunk = ''.join(data_stream.readChunkList(start_offset, end_offset))
return data_stream_chunk
except Exception as e:
context.logEntry("Exception getting Data Stream (id '%s') content: %s." % (id, str(e)))
context.logEntry("Exception getting Data Stream (id '%s') content: %s." % (identity, str(e)))
raise e
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>id, start_offset, end_offset</string> </value>
<value> <string>identity, start_offset, end_offset</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
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