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
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
Levin Zimmermann
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
Show 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:
"""
This class provides a generic implementation of IBaseConvertable.
This Mixin combine BaseConvertable and Files documents.
getBaseData is overrid
ed
to serialise Pdata into string
_setBaseData is overrid
ed to wrap
p data into Pdata
getBaseData is overrid
den
to serialise Pdata into string
_setBaseData is overrid
den to wra
p data into Pdata
- 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:
if
not
self
.
hasData
():
# Empty document cannot be converted
return
message
=
self
.
_convertToBaseFormat
()
# Call implemetation method
message
=
self
.
_convertToBaseFormat
()
# Call impleme
n
tation method
if
message
is
None
:
message
=
translateString
(
'Converted to ${mime_type}.'
,
mapping
=
{
'mime_type'
:
self
.
getBaseContentType
()})
...
...
@@ -73,7 +73,7 @@ class BaseConvertableFileMixin:
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'updateBaseMetadata'
)
def
updateBaseMetadata
(
self
,
**
kw
):
"""This Method must be defined explicit
e
ly.
"""This Method must be defined explicitly.
"""
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