Commit 10c68910 authored by Jérome Perrin's avatar Jérome Perrin

core: fix a few typos in BaseConvertableFileMixin

parent 206cd26f
...@@ -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 overrided to serialise Pdata into string getBaseData is overridden to serialise Pdata into string
_setBaseData is overrided to wrapp data into Pdata _setBaseData is overridden to wrap data into Pdata
- updateBaseMetadata is not implemented in this mixin and must be - updateBaseMetadata is not implemented in this mixin and must be
explicitely overrided if needed. explicitly 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 implementation 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 explicitely. """This Method must be defined explicitly.
""" """
raise NotImplementedError raise NotImplementedError
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment