Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
wendelin
Commits
d8fc97d8
Commit
d8fc97d8
authored
Sep 20, 2018
by
Klaus Wölfel
Committed by
Levin Zimmermann
Jun 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Data Array: use wc RAMArray in temporary mode
parent
150915f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataArray.py
...TemplateItem/portal_components/document.erp5.DataArray.py
+5
-1
No files found.
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataArray.py
View file @
d8fc97d8
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment