TextArea widget does not use default value

Bug #906430 reported by Richard Mitchell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zope.formlib
Invalid
Undecided
Unassigned

Bug Description

    >>> from zope.publisher.browser import TestRequest
    >>> from zope.schema import Text
    >>> from zope.formlib.textwidgets import TextAreaWidget
    >>>
    >>> field = Text(__name__='foo', title=u'on')
    >>> request = TestRequest(form={})
    >>> widget = TextAreaWidget(field, request)
    >>>
    >>> widget.default = 'foo'
    >>>
    >>> print normalize( widget() )
    <textarea
      cols="60"
      id="field.description"
      name="field.description"
      rows="15"
      ></textarea>

Revision history for this message
Colin Watson (cjwatson) wrote :

The zope.formlib project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope.formlib.

Changed in zope.formlib:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.