On 4 June 2010 11:15, Juan A. Diaz <[email protected]> wrote:
> Hi, all.
>
> I'm having a similar problem that the described here[0] using the
> plone.app.registry version 1.0b1 and the  versions part from
> http://good-py.appspot.com/release/plone.app.registry/1.0b1. The same
> happens  with the release 1.0b2.
>
> Both plone.app.registry and plone.app.z3cfom are installed in the plone site.
>
> I get the error[1] when I try to edit the my record trough the
> "Configuration registry" in the  control panel.
>
> I did a test installing plone.app.discussion and they work without
> problems, so I believe that the problem is here :s
>
> I create the record with the xml definition[2] only but when I try to
> edit the record I get the same error[3]
>
> If anyone has an idea about what could be the problem or where I'm
> wrong I would be very grateful.
>
> Greetings and sorry for my English =)
>
> [0] http://plone.293351.n2.nabble.com/z3c-form-problem-td4964124.html
>
> -------------------
> [1] Error log.
>
> 2010-06-03 22:29:15 ERROR Zope.SiteErrorLog
> 1275614955.520.900576711449
> http://localhost:22500/Plone/portal_registry/edit/yaco.deliverancethemeselector.interfaces.IDeliveranceThemeSelectorSettings.availableThemes
> Traceback (innermost last):
>  Module ZPublisher.Publish, line 127, in publish
>  Module ZPublisher.mapply, line 77, in mapply
>  Module ZPublisher.Publish, line 47, in call_object
>  Module plone.z3cform.layout, line 64, in __call__
>  Module plone.z3cform.layout, line 54, in update
>  Module plone.app.registry.browser.edit, line 23, in update
>  Module z3c.form.form, line 208, in update
>  Module plone.z3cform.patch, line 21, in BaseForm_update
>  Module z3c.form.form, line 149, in update
>  Module z3c.form.form, line 134, in updateWidgets
>  Module z3c.form.field, line 257, in update
>  Module zope.component._api, line 111, in getMultiAdapter
> ComponentLookupError: ((<plone.registry.field.Dict object at
> 0x2ae886579758>, <HTTPRequest,
> URL=http://localhost:22500/Plone/portal_registry/edit/yaco.deliverancethemeselector.interfaces.IDeliveranceThemeSelectorSettings.availableThemes>),
> <InterfaceClass z3c.form.interfaces.IFieldWidget>, u'')

This happens because there is no default widget for a Dict field, so
z3c.form doesn't know what to display.

Until someone writes such a widget, your options are to not use the
dict field or live with the error and use GenericSetup or Python to
manipulate the registry. Sorry. :(

Martin
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to