collective / collective.easyform

Forms for Plone
https://pypi.org/project/collective.easyform
13 stars 28 forks source link

pat-depends or css-class not working on rich-label #424

Open Nimo-19 opened 2 months ago

Nimo-19 commented 2 months ago

Hi,

I tried adding a CSS Class to a rich-label and noticed the class is not set. After rummaging through the repo I noticed in the rich-label.pt although that pad-depends is not set. Tried to override it quick and dirty analogous to the widget.pt, but got a LocationError:

zope.location.interfaces.LocationError: zope.location.interfaces.LocationError: (<Products.Five.browser.metaconfigure.RichLabelRenderWidget object at 0x7c8a5504eb50>, 'dependencies')

 - Expression: "cies view/@@depende"
 - Filename:   ... wser/overrides/collective.easyform.browser.rich_label.pt
 - Location:   (line 8: col 15)
 - Source:     dependencies view/@@dependencies;
Nimo-19 commented 2 months ago

I would really like to fix this. Can anybody point me in the right direction. Don't know where to start. It worked (somehow) in my 3.2.1 Plone 5.2 instance.