Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
klaus_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
Eteri
klaus_wendelin
Commits
614bd5c8
Commit
614bd5c8
authored
Sep 20, 2018
by
Klaus Wölfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Data Array: use wc RAMArray in temporary mode
parent
c75743ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataArray.py
...TemplateItem/portal_components/document.erp5.DataArray.py
+5
-1
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataArray.xml
...emplateItem/portal_components/document.erp5.DataArray.xml
+3
-3
No files found.
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataArray.py
View file @
614bd5c8
...
@@ -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
...
...
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataArray.xml
View file @
614bd5c8
...
@@ -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:1
26
, 42: Redefining built-in \'format\' (redefined-builtin)
</string>
<string>
W:1
37
, 42: Redefining built-in \'format\' (redefined-builtin)
</string>
<string>
W:1
43
, 4: Redefining built-in \'range\' (redefined-builtin)
</string>
<string>
W:1
54
, 4: Redefining built-in \'range\' (redefined-builtin)
</string>
<string>
W:1
70
, 10: No exception type(s) specified (bare-except)
</string>
<string>
W:1
81
, 10: No exception type(s) specified (bare-except)
</string>
</tuple>
</tuple>
</value>
</value>
</item>
</item>
...
...
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