Closed gotcha closed 9 years ago
Agreed. Actually, we should check FTI type for the given portal_type.
Godefroid Chapelle notifications@github.com kirjoitti 6.7.2015 kello 18.16:
checking for HAS_DEXTERITY is over simplified, we should check if the types of the default content types are Products.ATContentTypes or plone.app.contenttypes
— Reply to this email directly or view it on GitHub.
Checking for
HAS_DEXTERITY
is over simplified, we should check if the types of the default content types areProducts.ATContentTypes
orplone.app.contenttypes
Because the check is failing, when trying to create an image for News Item, we use the wrong code path.
And we get an
AssertionError: 'NamedImage' object has no attribute 'seek'
.