I have a portlet config field that holds a URL that is pretty long and I wanted to widen the length of the input field. Is there some way to do this without creating a custom 'widget'.
It seems there is a simple way to do this I'm missing.
I tried this but it seemed to corrupt the URL b/c I got below errors from zope (***see below).
The data is defined as type 'ASCIILine'.
class EditForm(base.EditForm):
form_fields = form.Fields(ICheckoutButton)
url_field=form_fields['my_url']
url_field.custom_widget = ASCIIWidget
url_field.custom_widget.displayWidth=100
I know this is kind of trivial but I want to know what's happening under the hood.
***
URL: file:c:\plone-3.3\buildout-cache\eggs\plone-3.3rc3-py2.4.egg\Products\CMFPlone\skins\plone_templates\global_defines.pt
Line 8, Column 0
Expression: <PathExpr standard:u'plone_view/globalize'
ComponentLookupError: ((<Product at /rocket/brands/astrac/as-v6.3>, <HTTPRequest, URL=http://localhost:8080/rocket/brands/astrac/as-v6.3/base_view>, <Products.Five.metaclass.Plone object at 0x07CA5310>, <plone.portlets.manager.PortletManager object at 0x0771B5F0>, <Assignment at checkout-button>), <InterfaceClass plone.portlets.interfaces.IPortletRenderer>, u'')