Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
erp5
Commits
10c68910
Commit
10c68910
authored
Nov 16, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: fix a few typos in BaseConvertableFileMixin
parent
206cd26f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
product/ERP5/bootstrap/erp5_core/MixinTemplateItem/portal_components/mixin.erp5.BaseConvertableFileMixin.py
.../portal_components/mixin.erp5.BaseConvertableFileMixin.py
+5
-5
No files found.
product/ERP5/bootstrap/erp5_core/MixinTemplateItem/portal_components/mixin.erp5.BaseConvertableFileMixin.py
View file @
10c68910
...
@@ -39,11 +39,11 @@ class BaseConvertableFileMixin:
...
@@ -39,11 +39,11 @@ class BaseConvertableFileMixin:
"""
"""
This class provides a generic implementation of IBaseConvertable.
This class provides a generic implementation of IBaseConvertable.
This Mixin combine BaseConvertable and Files documents.
This Mixin combine BaseConvertable and Files documents.
getBaseData is overrid
ed
to serialise Pdata into string
getBaseData is overrid
den
to serialise Pdata into string
_setBaseData is overrid
ed to wrap
p data into Pdata
_setBaseData is overrid
den to wra
p data into Pdata
- updateBaseMetadata is not implemented in this mixin and must be
- updateBaseMetadata is not implemented in this mixin and must be
explicit
ely overrided
if needed.
explicit
ly overridden
if needed.
"""
"""
...
@@ -61,7 +61,7 @@ class BaseConvertableFileMixin:
...
@@ -61,7 +61,7 @@ class BaseConvertableFileMixin:
if
not
self
.
hasData
():
if
not
self
.
hasData
():
# Empty document cannot be converted
# Empty document cannot be converted
return
return
message
=
self
.
_convertToBaseFormat
()
# Call implemetation method
message
=
self
.
_convertToBaseFormat
()
# Call impleme
n
tation method
if
message
is
None
:
if
message
is
None
:
message
=
translateString
(
'Converted to ${mime_type}.'
,
message
=
translateString
(
'Converted to ${mime_type}.'
,
mapping
=
{
'mime_type'
:
self
.
getBaseContentType
()})
mapping
=
{
'mime_type'
:
self
.
getBaseContentType
()})
...
@@ -73,7 +73,7 @@ class BaseConvertableFileMixin:
...
@@ -73,7 +73,7 @@ class BaseConvertableFileMixin:
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'updateBaseMetadata'
)
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'updateBaseMetadata'
)
def
updateBaseMetadata
(
self
,
**
kw
):
def
updateBaseMetadata
(
self
,
**
kw
):
"""This Method must be defined explicit
e
ly.
"""This Method must be defined explicitly.
"""
"""
raise
NotImplementedError
raise
NotImplementedError
...
...
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