plone / bobtemplates.plone

Python Code Templates for Plone Projects with mr.bob
https://pypi.org/project/bobtemplates.plone/
GNU General Public License v2.0
24 stars 31 forks source link

do not create an empty docstring for a content-type class #463

Closed erral closed 3 years ago

erral commented 3 years ago

I have been bitten by this several times these weeks: when adding an empty docstring to a content-type class, Zope refuses to render the view for it, even the edit form for it, just because the docstring is empty.

If you are using some linting configuration that just converts the empty multiline comment to a one-line empty comment you do not have the docstring and the content items can't be rendered and neither accessed through the ZMI, weird.

This PR adds a dummy docstring to the content-type to avoid this strange errors.

erral commented 3 years ago

Yes, black is to blame here in my case too.