Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is "AbortVersioningOfLargeFilesAndImages" and "SkipVersioningOfLargeFilesAndImages" still needed for Dexterity's "File" blobs? #39

Open
idgserpro opened this issue Jul 21, 2016 · 1 comment

Comments

@alecpm
Copy link
Member

alecpm commented Jul 21, 2016

This modifier was intended only for handing of OFS File/Image objects (i.e. non-blob files using Pdata chains) stored as attributes, i.e. old-style non-blob AT File and AT Image fields. It appears that the plone.app.contenttypes file and image object support the APIs, the modifier expects, so it treats those as if they are old-style non-blob Files and aborts the version to avoid recursion errors and segfaults during pickling. It should be fine to disable the modifier on sites which don't make use of old-style AT Image/File fields. Better would be to update the modifier to explicitly check the type of the file object being inspected (e.g.isinstance(f, OFS.Image.File))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants