Commit d8fc97d8 authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Levin Zimmermann

Data Array: use wc RAMArray in temporary mode

parent 150915f9
...@@ -31,6 +31,7 @@ from Products.ERP5Type import Permissions, PropertySheet ...@@ -31,6 +31,7 @@ from Products.ERP5Type import Permissions, PropertySheet
from erp5.component.document.BigFile import BigFile from erp5.component.document.BigFile import BigFile
from wendelin.bigarray.array_zodb import ZBigArray from wendelin.bigarray.array_zodb import ZBigArray
from erp5.component.document.File import _MARKER from erp5.component.document.File import _MARKER
from wendelin.bigarray.array_ram import RAMArray
from ZPublisher import HTTPRangeSupport from ZPublisher import HTTPRangeSupport
from webdav.common import rfc1123_date from webdav.common import rfc1123_date
from DateTime import DateTime from DateTime import DateTime
...@@ -60,6 +61,9 @@ class DataArray(BigFile): ...@@ -60,6 +61,9 @@ class DataArray(BigFile):
""" """
Initialise array. Initialise array.
""" """
if self.__module__ == "erp5.temp_portal_type":
array = RAMArray(shape, dtype)
else:
array = ZBigArray(shape, dtype) array = ZBigArray(shape, dtype)
self._setArray(array) self._setArray(array)
return array return array
......
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