[Zope3-Users] default text for dropdown widget empty selection
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Jan 8 03:47:49 EST 2007
On Tuesday 02 January 2007 14:10, Roy Mathew wrote:
> Currently, the builtin dropdown widgets show the string '(no value)'
> as the empty default. Is it possible to show different text in its
> place?
Yes, you have three choices:
1. Provide a translation for English to change it globally.
2. Subclass the original widget and change the ``_messageNoValue`` attribute.
You can either register this new widget or set it as the custom widget.
3. After the widgets are created/instantiated in the form, set
``_messageNoValue``.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-users
mailing list