Function
zope.app.form.utility.setUpWidget

Signature

setUpWidget(view, name, field, viewType, value=<object object at 0x403d9590>, prefix=None, ignoreStickyValues=False, context=None)

Documentation String

Sets up a single view widget.

The widget will be an attribute of the view. If there is already an attribute of the given name, it must be a widget and it will be initialized with the given value if not no_value.

If there isn't already a view attribute of the given name, then a widget will be created and assigned to the attribute.