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
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
Mukul
erp5
Commits
81bb62dc
Commit
81bb62dc
authored
Oct 27, 2011
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
image_resolution is now renamed to image_quality.
parent
cf7c12a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
product/ERP5Form/ImageField.py
product/ERP5Form/ImageField.py
+3
-3
No files found.
product/ERP5Form/ImageField.py
View file @
81bb62dc
...
...
@@ -146,12 +146,12 @@ class ImageFieldWidget(Widget.TextWidget):
image_object
=
field
.
getPortalObject
().
restrictedTraverse
(
path
)
display
=
field
.
get_value
(
'image_display'
)
format
=
field
.
get_value
(
'image_format'
)
resolution
=
field
.
get_value
(
'image_resolution
'
)
quality
=
field
.
get_value
(
'image_quality
'
)
image_parameter_dict
=
{
'format'
:
format
}
if
display
:
image_parameter_dict
[
'display'
]
=
display
if
resolution
:
image_parameter_dict
[
'
resolution'
]
=
resolution
if
quality
:
image_parameter_dict
[
'
quality'
]
=
quality
# convert the image using fields parameters. In this way, if an image
# is displayed in the form as a thumbnail, it will be added in the odg
# document as thumbnail size/quality
...
...
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