Skip to content

Edit a list of objects demos forms are broken (traceback) #210

@laulaz

Description

@laulaz

Tried on Plone 6.1.

On http://localhost:8080/Plone/@@demo-collective.z3cform.datagrid-menu, all the demos of the right list ("Edit a list of objects") give the following traceback :

Traceback (innermost last):
  Module ZPublisher.WSGIPublisher, line 181, in transaction_pubevents
  Module ZPublisher.WSGIPublisher, line 390, in publish_module
  Module ZPublisher.WSGIPublisher, line 284, in publish
  Module ZPublisher.mapply, line 98, in mapply
  Module ZPublisher.WSGIPublisher, line 68, in call_object
  Module z3c.form.form, line 238, in __call__
  Module z3c.form.form, line 231, in update
  Module plone.z3cform.patch, line 21, in BaseForm_update
  Module z3c.form.form, line 159, in update
  Module collective.z3cform.datagridfield.demo.editform_object, line 187, in updateWidgets
  Module z3c.form.form, line 140, in updateWidgets
  Module z3c.form.field, line 278, in update
  Module z3c.form.browser.multi, line 63, in update
  Module z3c.form.browser.widget, line 162, in update
  Module z3c.form.widget, line 514, in update
  Module Products.CMFPlone.patches.z3c_form, line 48, in _wrapped
  Module z3c.form.widget, line 131, in update
  Module z3c.form.widget, line 509, in value
  Module collective.z3cform.datagridfield.datagridfield, line 145, in updateWidgets
  Module z3c.form.widget, line 448, in updateWidgets
  Module z3c.form.widget, line 396, in applyValue
  Module z3c.form.object, line 105, in toFieldValue
  Module z3c.form.object, line 96, in adapted_obj
TypeError: ('Could not adapt', {'address_type': ['Work'], 'line1': 'My Office', 'line2': 'Big Office Block', 'city': 'Mega City', 'country': 'The Old Sod'}, <InterfaceClass collective.z3cform.datagridfield.demo.editform_object.IAddress>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions