Commit 2675bd5e authored by Jean-Paul Smets's avatar Jean-Paul Smets

Made asURL method more robust.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13689 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9b23f3fc
...@@ -66,7 +66,12 @@ class ImageFieldWidget(Widget.TextWidget): ...@@ -66,7 +66,12 @@ class ImageFieldWidget(Widget.TextWidget):
required=0) required=0)
def render(self, field, key, value, REQUEST): def render(self, field, key, value, REQUEST):
"""Render text input field. """Render image field as a link to the image
"""
return self.render_view(field, value)
def render_view(self, field, value):
"""Render image field as a link to the image
""" """
# Url is already defined in value # Url is already defined in value
image = value image = value
......
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