Commit f3dcc9a9 authored by Sebastien Robin's avatar Sebastien Robin

import getToolByName was missing


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1055 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6b8a7ece
......@@ -30,6 +30,7 @@ from Products.Formulator import Widget, Validator
from Products.Formulator.Field import ZMIField
from Products.Formulator.DummyField import fields
from Products.ERP5Type.Utils import convertToUpperCase
from Products.CMFCore.utils import getToolByName
class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget):
"""
......@@ -91,6 +92,7 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget):
def render(self, field, key, value, REQUEST):
"""Render text input field.
"""
here = REQUEST['here']
html_string = Widget.LinesTextAreaWidget.render(self, field, key, value, REQUEST)
portal_url_string = getToolByName(here, 'portal_url')()
# We add a button which has a path reference to a base category...
......
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