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
141
Merge Requests
141
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
46643eda
Commit
46643eda
authored
Feb 10, 2024
by
Jérome Perrin
Committed by
Arnaud Fontaine
Jul 31, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bytes data
parent
ed05d10e
Changes
4
Show 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 @
46643eda
"""
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 @
46643eda
...
...
@@ -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 @
46643eda
...
...
@@ -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 @
46643eda
...
...
@@ -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