You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/ale/.buildout/eggs/plone.app.dexterity-2.6.8-py3.8.egg/plone/app/dexterity/behaviors/constrains.py", line 30, in getConstrainTypesMode
if not self.context.portal_type == parent.portal_type:
AttributeError: 'RequestContainer' object has no attribute 'portal_type'
I would say:
we should not lookup portal_type in an acquired object
we should use getattr to check for the portal type
The text was updated successfully, but these errors were encountered:
Fix the constraint types mode calculation, disabling acquisition and gracefully checking for the existence of a portal type attribute in the container
Fixes#319
* Fix the constraint types mode calculation
Fix the constraint types mode calculation, disabling acquisition and gracefully checking for the existence of a portal type attribute in the container
Add test coverage and cleanup unused imports
Fixes#319
Co-authored-by: Roel Bruggink <roel@jaroel.nl>
I found this when working on plone/Products.CMFPlone#2454:
I would say:
The text was updated successfully, but these errors were encountered: