Commit 7402a59e authored by Yusei Tahara's avatar Yusei Tahara

erp5_data_notebook: ZBigArray may not be available, add it to...

erp5_data_notebook: ZBigArray may not be available, add it to well_known_unserializable_type_tuple if possible.
parent c5560c4e
...@@ -30,8 +30,13 @@ display_data_wrapper_lock = threading.Lock() ...@@ -30,8 +30,13 @@ display_data_wrapper_lock = threading.Lock()
# Well known unserializable types # Well known unserializable types
from Record import Record from Record import Record
from wendelin.bigarray.array_zodb import ZBigArray well_known_unserializable_type_tuple = (ModuleType, Record)
well_known_unserializable_type_tuple = (ModuleType, Record, ZBigArray) # ZBigArray may not be available
try:
from wendelin.bigarray.array_zodb import ZBigArray
well_known_unserializable_type_tuple = tuple(list(well_known_unserializable_type_tuple) + [ZBigArray])
except ImportError:
pass
def Base_executeJupyter(self, python_expression=None, reference=None, \ def Base_executeJupyter(self, python_expression=None, reference=None, \
title=None, request_reference=False, **kw): title=None, request_reference=False, **kw):
......
...@@ -46,13 +46,13 @@ ...@@ -46,13 +46,13 @@
<key> <string>text_content_warning_message</string> </key> <key> <string>text_content_warning_message</string> </key>
<value> <value>
<tuple> <tuple>
<string>W:396, 10: Use of exec (exec-used)</string> <string>W:401, 10: Use of exec (exec-used)</string>
<string>W:442, 10: Use of exec (exec-used)</string> <string>W:447, 10: Use of exec (exec-used)</string>
<string>W:455, 10: Use of exec (exec-used)</string> <string>W:460, 10: Use of exec (exec-used)</string>
<string>W:544, 4: No exception type(s) specified (bare-except)</string> <string>W:549, 4: No exception type(s) specified (bare-except)</string>
<string>W:552, 6: No exception type(s) specified (bare-except)</string> <string>W:557, 6: No exception type(s) specified (bare-except)</string>
<string>W:864, 6: Use of exec (exec-used)</string> <string>W:869, 6: Use of exec (exec-used)</string>
<string>W:1099, 2: Redefining name \'IFrame\' from outer scope (line 4) (redefined-outer-name)</string> <string>W:1104, 2: Redefining name \'IFrame\' from outer scope (line 4) (redefined-outer-name)</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
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