Commit 0b2734ff authored by Jérome Perrin's avatar Jérome Perrin

update a docstring and wrap a long line


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23730 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c59e9360
...@@ -45,8 +45,8 @@ class ImageFieldWidget(Widget.TextWidget): ...@@ -45,8 +45,8 @@ class ImageFieldWidget(Widget.TextWidget):
image_display = fields.StringField('image_display', image_display = fields.StringField('image_display',
title='Image Display', title='Image Display',
description=( description=(
"The display size. See ERP5.Document.Image.defaultdisplays for " "The display size. See ERP5.Document.Image.default_displays_id_list "
"possible values. This is only used with ERP5 Images."), "for possible values. This is only used with ERP5 Images."),
default='thumbnail', default='thumbnail',
required=1) required=1)
...@@ -81,11 +81,12 @@ class ImageFieldWidget(Widget.TextWidget): ...@@ -81,11 +81,12 @@ class ImageFieldWidget(Widget.TextWidget):
display = field.get_value('image_display') display = field.get_value('image_display')
format = field.get_value('image_format') format = field.get_value('image_format')
resolution = field.get_value('image_resolution') resolution = field.get_value('image_resolution')
html_string = """<img src="%s?display=%s&amp;format=%s&amp;resolution=%s" alt="%s"/>""" % \ html_string = '<img src="%s?display=%s&amp;format=%s&amp;'\
(html_quote(image), 'resolution=%s" alt="%s"/>' % \
html_quote(display), (html_quote(image),
html_quote(format), html_quote(display),
html_quote(resolution), html_quote(format),
html_quote(resolution),
html_quote(alt)) html_quote(alt))
return html_string return html_string
......
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