collective.exportimport
collective.exportimport copied to clipboard
Temporarily disallow constraints when creating the parent folder chain
Fixes #173
Or you can use Products.CMFPlone.utils._createObjectByType
to bypass these checks.
Yeah, a context manager might be an idea.
Probably @pbauer idea is even better because it might be that even the type in not constrained it is not allowed in the FTI settings.
One other thing is that this always create a Folder
.
This might be a problem if later we import the proper object.
I am working on a migration and found some other things, I will try to contribute back as soon as possible!