euphorie / Euphorie

Euphorie is a tool for risk assessment
https://pythonhosted.org/Euphorie/
GNU General Public License v2.0
11 stars 6 forks source link

Widget for Description field not being rendered in the add form for several content types #689

Open kamon opened 5 months ago

kamon commented 5 months ago

Hi, I am testing Euphorie 15.1.1 (Plone 5.2). Normal buildout from the Euphorie repository '15.1.1' tag, with nothing else. After my setup, when trying to add content, for example 'Page', as a site administrator, I get the following behavior: The wysiwyg widget for the Description field is not showing up. + The console is showing the warning "DeprecationWarning: plone.app.z3cform.wysiwyg.WysiwygFieldWidget is deprecated andwill be removed in Plone 5.1".

This happens for other cases (such as Risk, if I recall correct). Also, in the code we are defining the WysiwygFieldWidget for the body field, which follows the description field in that form, and the widget for the body field is rendered and working. It is as if it is not possible to have the widget rended twice on the same page.

Anyone experienced this? Any ideas?

PS: I am thinking that wysiwyg widget could be replaced by the one provided by plone.app.z3cform.widgets.richtext, but that does not seem a trivial change due to the versions compatibilities between many dependencies involved.

Screenshot 2024-01-15 at 09 44 22
ale-rt commented 5 months ago

Did you try with the latest tag (15.2.0)? Also check if you have the latest NuPlone version 2.2.0.

About the widget, it is known that it has to be updated/replaced at a certain point, but so far it is not prio number 1.

kamon commented 5 months ago

I've just reproduced the bug using tag 15.2.0 (NuPlone 2.2.2 pinned in the versions-5.2.cfg file).