Commit 4a331748 authored by Martin Manchev's avatar Martin Manchev

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

parent e8c0b163
try: try:
start_offset = int(float(start_offset)) start_offset = int(float(start_offset))
end_offset = int(float(end_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)) data_stream_chunk = ''.join(data_stream.readChunkList(start_offset, end_offset))
return data_stream_chunk return data_stream_chunk
except Exception as e: 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 raise e
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <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>
<item> <item>
<key> <string>id</string> </key> <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