-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add missing method in scaling customization #83
base: main
Are you sure you want to change the base?
Conversation
@cekk thanks for creating this Pull Request and helping to improve Plone! TL;DR: Finish pushing changes, pass all other checks, then paste a comment:
To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically. Happy hacking! |
@jenkins-plone-org please run jobs |
@cekk do you have a pointer to a bug report or something? I just would like to understand what goes wrong. |
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works.
But I would like to suggest to inherit from DefaultImageScalingFactory
instead. The current implementation, especially the __call__
method, is copied from there, and might be missing fixes. If Plone 5.2 still needs to be supported, this might need more care though.
In fact, this VoltoImageScalingFactory is registered with conditional zcml so that it is only used in Plone 5 ( So, I think an error from the missing method would only happen if you are using Plone 5 with the versions of plone.scale and plone.namedfile that are intended for Plone 6. Is that the case? It would be helpful to see the traceback to make sure we understand the error. |
You're right as usually..we were testing new plone.scale and namedfile packages on a plone 52 (i didn't remembered it). Here you are the traceback for reference:
|
What's the status on this one? Can we merge? @cekk how about @mauritsvanrees suggestion? |
@sneridagh as i said, my initial problem was that i was testing mixed things (plone52 with experimental packages). I don't know if this could be an use-case but probably can. Maurits' suggestion is right, but i don't know why the original code was written like this. I can fix it if you want |
@cekk @mauritsvanrees @sneridagh My proposal is to remove the |
In classic Plone the scaling factory breaks without this method