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):
image_display = fields.StringField('image_display',
title='Image Display',
description=(
"The display size. See ERP5.Document.Image.defaultdisplays for "
"possible values. This is only used with ERP5 Images."),
"The display size. See ERP5.Document.Image.default_displays_id_list "
"for possible values. This is only used with ERP5 Images."),
default='thumbnail',
required=1)
......@@ -81,11 +81,12 @@ class ImageFieldWidget(Widget.TextWidget):
display = field.get_value('image_display')
format = field.get_value('image_format')
resolution = field.get_value('image_resolution')
html_string = """<img src="%s?display=%s&amp;format=%s&amp;resolution=%s" alt="%s"/>""" % \
(html_quote(image),
html_quote(display),
html_quote(format),
html_quote(resolution),
html_string = '<img src="%s?display=%s&amp;format=%s&amp;'\
'resolution=%s" alt="%s"/>' % \
(html_quote(image),
html_quote(display),
html_quote(format),
html_quote(resolution),
html_quote(alt))
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