getWidgetsData(view, schema, names=None)
Returns user entered data for a set of schema fields.
The return value is a map of field names to data values.
view is the view containing the widgets. schema is the schema that defines the widget fields. An optional names argument can be provided to specify an alternate list of field values to return. If names is not specified, or is None, getWidgetsData will attempt to return values for all of the fields in the schema.
A requested field value may be omitted from the result for one of two reasons:
- The field is read only, in which case its widget will not have user input.
- The field is editable and not required but its widget does not contain user input.
If a field is required and its widget does not have input, getWidgetsData raises an error.
A widget may raise a validation error if it cannot return a value that satisfies its field's contraints.
Errors, if any, are collected for all fields and reraised as a single WidgetsError.