Commit 614bd5c8 authored by Klaus Wölfel's avatar Klaus Wölfel

Data Array: use wc RAMArray in temporary mode

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