Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
138
Merge Requests
138
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
0a7b8425
Commit
0a7b8425
authored
Feb 10, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bytes data
parent
d139a2f9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
bt5/erp5_dms_conversion_catalog/SkinTemplateItem/portal_skins/erp5_dms_conversion_catalog/Base_isConvertible.py
...l_skins/erp5_dms_conversion_catalog/Base_isConvertible.py
+1
-1
bt5/erp5_multimedia/DocumentTemplateItem/portal_components/document.erp5.Sound.py
...mentTemplateItem/portal_components/document.erp5.Sound.py
+1
-1
product/ERP5/bootstrap/erp5_core/MixinTemplateItem/portal_components/mixin.erp5.CachedConvertableMixin.py
...em/portal_components/mixin.erp5.CachedConvertableMixin.py
+1
-1
product/PortalTransforms/transforms/png_to_text.py
product/PortalTransforms/transforms/png_to_text.py
+1
-1
No files found.
bt5/erp5_dms_conversion_catalog/SkinTemplateItem/portal_skins/erp5_dms_conversion_catalog/Base_isConvertible.py
View file @
0a7b8425
"""
Return true or false based on if document is convertible or not.
"""
MARKER
=
(
None
,
''
,)
MARKER
=
(
None
,
b
''
,)
portal
=
context
.
getPortalObject
()
portal_type
=
context
.
getPortalType
()
...
...
bt5/erp5_multimedia/DocumentTemplateItem/portal_components/document.erp5.Sound.py
View file @
0a7b8425
...
...
@@ -86,4 +86,4 @@ class Sound(File):
RESPONSE
.
setHeader
(
'Content-Range'
,
'bytes %s-%s/%s'
%
(
start
,
end
-
1
,
total_length
))
RESPONSE
.
setStatus
(
206
)
return
str
(
data
)
\ No newline at end of file
return
bytes
(
data
)
\ No newline at end of file
product/ERP5/bootstrap/erp5_core/MixinTemplateItem/portal_components/mixin.erp5.CachedConvertableMixin.py
View file @
0a7b8425
...
...
@@ -228,7 +228,7 @@ class CachedConvertableMixin:
if
isinstance
(
data
,
OFSImage
):
data
=
data
.
data
if
isinstance
(
data
,
Pdata
):
data
=
str
(
data
)
data
=
bytes
(
data
)
return
mime
,
data
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getConversionSize'
)
...
...
product/PortalTransforms/transforms/png_to_text.py
View file @
0a7b8425
...
...
@@ -39,7 +39,7 @@ class png_to_text(popentransform):
else
:
popen
=
Popen
([
command
,
tmpname
],
env
=
environment
,
stdin
=
PIPE
,
stdout
=
PIPE
)
out
=
popen
.
communicate
(
str
(
data
))[
0
]
out
=
popen
.
communicate
(
bytes
(
data
))[
0
]
if
not
self
.
useStdin
:
# remove tmp file
...
...
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