Commit cb460a3e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix typos : _upradeImage -> upgradeImage.

parent da8b49d2
...@@ -130,7 +130,7 @@ class Image(TextConvertableMixin, File, OFSImage): ...@@ -130,7 +130,7 @@ class Image(TextConvertableMixin, File, OFSImage):
self.width = width self.width = width
self._setContentType(content_type or 'application/unknown') self._setContentType(content_type or 'application/unknown')
def _upradeImage(self): def _upgradeImage(self):
""" """
This method upgrades internal data structures is required This method upgrades internal data structures is required
""" """
...@@ -159,7 +159,7 @@ class Image(TextConvertableMixin, File, OFSImage): ...@@ -159,7 +159,7 @@ class Image(TextConvertableMixin, File, OFSImage):
""" """
Tries to get the width from the image data. Tries to get the width from the image data.
""" """
self._upradeImage() self._upgradeImage()
if self.hasData() and not self.width: if self.hasData() and not self.width:
self._update_image_info() self._update_image_info()
return self.width return self.width
...@@ -169,7 +169,7 @@ class Image(TextConvertableMixin, File, OFSImage): ...@@ -169,7 +169,7 @@ class Image(TextConvertableMixin, File, OFSImage):
""" """
Tries to get the height from the image data. Tries to get the height from the image data.
""" """
self._upradeImage() self._upgradeImage()
if self.hasData() and not self.height: if self.hasData() and not self.height:
self._update_image_info() self._update_image_info()
return self.height return self.height
...@@ -177,7 +177,7 @@ class Image(TextConvertableMixin, File, OFSImage): ...@@ -177,7 +177,7 @@ class Image(TextConvertableMixin, File, OFSImage):
security.declareProtected(Permissions.AccessContentsInformation, 'getContentType') security.declareProtected(Permissions.AccessContentsInformation, 'getContentType')
def getContentType(self, default=_MARKER): def getContentType(self, default=_MARKER):
"""Original photo content_type.""" """Original photo content_type."""
self._upradeImage() self._upgradeImage()
if self.hasData() and not self.hasContentType(): if self.hasData() and not self.hasContentType():
self._update_image_info() self._update_image_info()
if default is _MARKER: if default is _MARKER:
...@@ -311,7 +311,7 @@ class Image(TextConvertableMixin, File, OFSImage): ...@@ -311,7 +311,7 @@ class Image(TextConvertableMixin, File, OFSImage):
@fill_args_from_request('display', 'quality', 'resolution', 'frame') @fill_args_from_request('display', 'quality', 'resolution', 'frame')
def index_html(self, REQUEST, *args, **kw): def index_html(self, REQUEST, *args, **kw):
"""Return the image data.""" """Return the image data."""
self._upradeImage() self._upgradeImage()
return Document.index_html(self, REQUEST, *args, **kw) return Document.index_html(self, REQUEST, *args, **kw)
# #
......
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