plone / plone.app.layout

Core visual components for Plone, such as viewlets and general views
10 stars 30 forks source link

/view suffix error #75

Open diti76 opened 8 years ago

diti76 commented 8 years ago

If you empty the plone.types_use_view_action_in_listings registry, i.e. you don't want to have the /view for no type there you will get an error in: plone.app.layout-2.5.16-py2.7.egg/plone/app/layout/globals/context.py , line 77, in view_url if portal_type in use_view_action: TypeError: argument of type 'NoneType' is not iterable

There should be a check that plone.types_use_view_action_in_listings registry is not none...

CharString commented 7 years ago

I'd expect plone.types_use_view_action_in_listings to be an empty list, if I'd empty it. I only expect None, if I deleted the whole registry entry.