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
isaak yansane-sisk
wendelin
Commits
5269bed9
Commit
5269bed9
authored
Dec 21, 2015
by
Klaus Wölfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix getSize on empty data array
parent
ee845653
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 @
5269bed9
...
...
@@ -101,7 +101,11 @@ class DataArray(BigFile):
"""
Implement getSize interface for ndarray
"""
return
self
.
getArray
().
nbytes
array
=
self
.
getArray
()
if
array
is
None
:
return
0
else
:
return
self
.
getArray
().
nbytes
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getArrayShape'
)
def
getArrayShape
(
self
):
...
...
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataArray.xml
View file @
5269bed9
...
...
@@ -46,9 +46,9 @@
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple>
<string>
W:11
4
, 42: Redefining built-in \'format\' (redefined-builtin)
</string>
<string>
W:13
1
, 4: Redefining built-in \'range\' (redefined-builtin)
</string>
<string>
W:1
58
, 10: No exception type(s) specified (bare-except)
</string>
<string>
W:11
8
, 42: Redefining built-in \'format\' (redefined-builtin)
</string>
<string>
W:13
5
, 4: Redefining built-in \'range\' (redefined-builtin)
</string>
<string>
W:1
62
, 10: No exception type(s) specified (bare-except)
</string>
</tuple>
</value>
</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