Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
Commits
cb460a3e
Commit
cb460a3e
authored
Apr 02, 2013
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typos : _upradeImage -> upgradeImage.
parent
da8b49d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
product/ERP5/Document/Image.py
product/ERP5/Document/Image.py
+5
-5
No files found.
product/ERP5/Document/Image.py
View file @
cb460a3e
...
@@ -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
_up
g
radeImage
(
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
.
_up
g
radeImage
()
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
.
_up
g
radeImage
()
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
.
_up
g
radeImage
()
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
.
_up
g
radeImage
()
return
Document
.
index_html
(
self
,
REQUEST
,
*
args
,
**
kw
)
return
Document
.
index_html
(
self
,
REQUEST
,
*
args
,
**
kw
)
#
#
...
...
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