Commit f88f6af0 authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Eteri

Data Array: use wc RAMArray in temporary mode

parent fdcdaa1f
......@@ -30,6 +30,7 @@ from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5.Document.BigFile import BigFile
from wendelin.bigarray.array_zodb import ZBigArray
from wendelin.bigarray.array_ram import RAMArray
from Products.ERP5.Document.File import _MARKER
from ZPublisher import HTTPRangeSupport
from webdav.common import rfc1123_date
......@@ -60,7 +61,10 @@ class DataArray(BigFile):
"""
Initialise array.
"""
array = ZBigArray(shape, dtype)
if self.__module__ == "erp5.temp_portal_type":
array = RAMArray(shape, dtype)
else:
array = ZBigArray(shape, dtype)
self._setArray(array)
return array
......
......@@ -46,9 +46,9 @@
<key> <string>text_content_warning_message</string> </key>
<value>
<tuple>
<string>W:126, 42: Redefining built-in \'format\' (redefined-builtin)</string>
<string>W:143, 4: Redefining built-in \'range\' (redefined-builtin)</string>
<string>W:170, 10: No exception type(s) specified (bare-except)</string>
<string>W:137, 42: Redefining built-in \'format\' (redefined-builtin)</string>
<string>W:154, 4: Redefining built-in \'range\' (redefined-builtin)</string>
<string>W:181, 10: No exception type(s) specified (bare-except)</string>
</tuple>
</value>
</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