class IPersonRowSchema(interface.Interface):
Fullname = schema.TextLine(title=u"Fullname")
Email = schema.TextLine(title=u"Email")
class IContact(model.Schema):
""" Marker interface and Dexterity Python Schema for Contact
"""
directives.widget(Person='collective.z3cform.datagridfield.datagridfield.DataGridFieldWidgetFactory')
Person = schema.List(
title=_(u'label_person', default=u'Person'),
description=_(u'help_person', default=u''),
required=False,
value_type=DictRow(
title=u"personrow",
schema=IPersonRowSchema,
),
)
++add++Contact give me this error:
ERROR [Zope.SiteErrorLog:35][waitress-0] IndexError: http://localhost:8080/Plone/++add++Contact
Traceback (innermost last):
Module ZPublisher.WSGIPublisher, line 167, in transaction_pubevents
Module ZPublisher.WSGIPublisher, line 376, in publish_module
Module ZPublisher.WSGIPublisher, line 271, in publish
Module ZPublisher.mapply, line 85, in mapply
Module ZPublisher.WSGIPublisher, line 68, in call_object
Module plone.z3cform.layout, line 63, in call
Module plone.z3cform.layout, line 57, in update
Module z3c.form.form, line 281, in render
Module z3c.form.form, line 162, in render
Module zope.browserpage.viewpagetemplatefile, line 46, in call
Module zope.pagetemplate.pagetemplate, line 133, in pt_render
Module Products.PageTemplates.engine, line 365, in call
Module z3c.pt.pagetemplate, line 176, in render
Module chameleon.zpt.template, line 302, in render
Module chameleon.template, line 192, in render
Module 26c5fb992e757582f7d2260ec9f18f2c, line 115, in render
Module 9d40da49aa2fdc4a6d1f5f3ffef7e7c6, line 949, in render_titlelessform
Module 9d40da49aa2fdc4a6d1f5f3ffef7e7c6, line 1268, in render_fields
Module 9d40da49aa2fdc4a6d1f5f3ffef7e7c6, line 1805, in render_widget_rendering
Module 9d40da49aa2fdc4a6d1f5f3ffef7e7c6, line 1912, in render_field
Module zope.tales.expressions, line 250, in call
Module Products.PageTemplates.Expressions, line 221, in _eval
Module Products.PageTemplates.Expressions, line 152, in render
Module zope.browserpage.simpleviewclass, line 41, in call
Module zope.browserpage.viewpagetemplatefile, line 81, in call
Module zope.browserpage.viewpagetemplatefile, line 46, in call
Module zope.pagetemplate.pagetemplate, line 133, in pt_render
Module Products.PageTemplates.engine, line 365, in call
Module z3c.pt.pagetemplate, line 176, in render
Module chameleon.zpt.template, line 302, in render
Module chameleon.template, line 192, in render
Module aa5fbc6a782b185c623a7e2dbb6dad04, line 726, in render
Module aa5fbc6a782b185c623a7e2dbb6dad04, line 504, in render_widget_wrapper
Module zope.tales.pythonexpr, line 73, in call
traceback_info: (widget.render())
Module , line 1, in
Module z3c.form.widget, line 154, in render
Module zope.browserpage.viewpagetemplatefile, line 46, in call__
Module zope.pagetemplate.pagetemplate, line 133, in pt_render
Module Products.PageTemplates.engine, line 365, in call
Module z3c.pt.pagetemplate, line 176, in render
Module chameleon.zpt.template, line 302, in render
Module chameleon.template, line 215, in render
Module chameleon.utils, line 53, in raise_with_traceback
Module chameleon.template, line 192, in render
Module c14165b0a110b470803b245267a9c33b, line 997, in render
Module c14165b0a110b470803b245267a9c33b, line 168, in render_widget_row
Module zope.tales.pythonexpr, line 73, in call__
__traceback_info__: (view.key_widgets[index])
Module , line 1, in
IndexError: list index out of range
Have been getting this error, please help.
Using these versions: Python = 3.9.13 Plone = 6.0.0a4 collective.z3cform.datagridfield = 3.0.0.dev0 (master branch) z3c.form = 4.3 plone.autoform = 2.0.0a1 plone.z3cform = 2.0.0a2 plone.app.z3cform = 4.0.0a9
This is my content type:
++add++Contact give me this error:
ERROR [Zope.SiteErrorLog:35][waitress-0] IndexError: http://localhost:8080/Plone/++add++Contact Traceback (innermost last): Module ZPublisher.WSGIPublisher, line 167, in transaction_pubevents Module ZPublisher.WSGIPublisher, line 376, in publish_module Module ZPublisher.WSGIPublisher, line 271, in publish Module ZPublisher.mapply, line 85, in mapply Module ZPublisher.WSGIPublisher, line 68, in call_object Module plone.z3cform.layout, line 63, in call Module plone.z3cform.layout, line 57, in update Module z3c.form.form, line 281, in render Module z3c.form.form, line 162, in render Module zope.browserpage.viewpagetemplatefile, line 46, in call Module zope.pagetemplate.pagetemplate, line 133, in pt_render Module Products.PageTemplates.engine, line 365, in call Module z3c.pt.pagetemplate, line 176, in render Module chameleon.zpt.template, line 302, in render Module chameleon.template, line 192, in render Module 26c5fb992e757582f7d2260ec9f18f2c, line 115, in render Module 9d40da49aa2fdc4a6d1f5f3ffef7e7c6, line 949, in render_titlelessform Module 9d40da49aa2fdc4a6d1f5f3ffef7e7c6, line 1268, in render_fields Module 9d40da49aa2fdc4a6d1f5f3ffef7e7c6, line 1805, in render_widget_rendering Module 9d40da49aa2fdc4a6d1f5f3ffef7e7c6, line 1912, in render_field Module zope.tales.expressions, line 250, in call Module Products.PageTemplates.Expressions, line 221, in _eval Module Products.PageTemplates.Expressions, line 152, in render Module zope.browserpage.simpleviewclass, line 41, in call Module zope.browserpage.viewpagetemplatefile, line 81, in call Module zope.browserpage.viewpagetemplatefile, line 46, in call Module zope.pagetemplate.pagetemplate, line 133, in pt_render Module Products.PageTemplates.engine, line 365, in call Module z3c.pt.pagetemplate, line 176, in render Module chameleon.zpt.template, line 302, in render Module chameleon.template, line 192, in render Module aa5fbc6a782b185c623a7e2dbb6dad04, line 726, in render Module aa5fbc6a782b185c623a7e2dbb6dad04, line 504, in render_widget_wrapper Module zope.tales.pythonexpr, line 73, in call
__traceback_info__: (view.key_widgets[index]) Module, line 1, in
IndexError: list index out of range