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

Better support for IQuerySource vocabularies #1078

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

alecpm
Copy link
Member

@alecpm alecpm commented Mar 1, 2021

This PR implements a couple small changes to help facilitate use of Async/AJAX select widgets with fields using a vocabulary providing IQuerySource. It makes the following changes.

  1. Look for such vocabularies in both the vocabulary property of the field as well as the source.
  2. Handle widgets that set their vocabulary attribute to a value other than a vocabulary name string.

This relates to issue #1077 and indirectly to #535.

CC: @pbauer @skleinfeldt

… instead of named vocabularies. Better handling for vocabularies providing IQuerySource.
@mister-roboto
Copy link

@alecpm thanks for creating this Pull Request and help improve Plone!

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass.

Whenever you feel that the pull request is ready to be tested, either start all jenkins jobs pull requests by yourself, or simply add a comment in this pull request stating:

@jenkins-plone-org please run jobs

With this simple comment all the jobs will be started automatically.

Happy hacking!

@alecpm alecpm linked an issue Mar 1, 2021 that may be closed by this pull request
@tisto
Copy link
Member

tisto commented Mar 2, 2021

@alecpm LGTM. Thanks for the fix! Would it be possible to write a test for this or is this too much hassle? We have a testing profile where we could set up vocabularies I guess...

@netlify
Copy link

netlify bot commented Aug 25, 2023

Deploy Preview for plone-restapi canceled.

Name Link
🔨 Latest commit f7b8c27
🔍 Latest deploy log https://app.netlify.com/sites/plone-restapi/deploys/64e8647da86a780008c634a4

@tisto
Copy link
Member

tisto commented Aug 25, 2023

Any takers to write a few tests? Then we could merge this PR.

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

Successfully merging this pull request may close these issues.

Support fields/widgets with concrete dynamic vocabularies
3 participants