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
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
3cd9627d
Commit
3cd9627d
authored
Feb 10, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bytes data
parent
785676a9
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 @
3cd9627d
"""
"""
Return true or false based on if document is convertible or not.
Return true or false based on if document is convertible or not.
"""
"""
MARKER
=
(
None
,
''
,)
MARKER
=
(
None
,
b
''
,)
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
portal_type
=
context
.
getPortalType
()
portal_type
=
context
.
getPortalType
()
...
...
bt5/erp5_multimedia/DocumentTemplateItem/portal_components/document.erp5.Sound.py
View file @
3cd9627d
...
@@ -86,4 +86,4 @@ class Sound(File):
...
@@ -86,4 +86,4 @@ class Sound(File):
RESPONSE
.
setHeader
(
'Content-Range'
,
RESPONSE
.
setHeader
(
'Content-Range'
,
'bytes %s-%s/%s'
%
(
start
,
end
-
1
,
total_length
))
'bytes %s-%s/%s'
%
(
start
,
end
-
1
,
total_length
))
RESPONSE
.
setStatus
(
206
)
RESPONSE
.
setStatus
(
206
)
return
str
(
data
)
return
bytes
(
data
)
\ No newline at end of file
\ No newline at end of file
product/ERP5/bootstrap/erp5_core/MixinTemplateItem/portal_components/mixin.erp5.CachedConvertableMixin.py
View file @
3cd9627d
...
@@ -228,7 +228,7 @@ class CachedConvertableMixin:
...
@@ -228,7 +228,7 @@ class CachedConvertableMixin:
if
isinstance
(
data
,
OFSImage
):
if
isinstance
(
data
,
OFSImage
):
data
=
data
.
data
data
=
data
.
data
if
isinstance
(
data
,
Pdata
):
if
isinstance
(
data
,
Pdata
):
data
=
str
(
data
)
data
=
bytes
(
data
)
return
mime
,
data
return
mime
,
data
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getConversionSize'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getConversionSize'
)
...
...
product/PortalTransforms/transforms/png_to_text.py
View file @
3cd9627d
...
@@ -39,7 +39,7 @@ class png_to_text(popentransform):
...
@@ -39,7 +39,7 @@ class png_to_text(popentransform):
else
:
else
:
popen
=
Popen
([
command
,
tmpname
],
env
=
environment
,
stdin
=
PIPE
,
popen
=
Popen
([
command
,
tmpname
],
env
=
environment
,
stdin
=
PIPE
,
stdout
=
PIPE
)
stdout
=
PIPE
)
out
=
popen
.
communicate
(
str
(
data
))[
0
]
out
=
popen
.
communicate
(
bytes
(
data
))[
0
]
if
not
self
.
useStdin
:
if
not
self
.
useStdin
:
# remove tmp file
# 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