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

Make relationchoice field works (Plone 5) #70

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

Conversation

quyet-nguyen
Copy link

This should fix #31 #67 #50

@tomgross
Copy link
Member

I have an other approach in #71 for this. I think it is cleaner but needs some Plone fixtures too plone/Products.CMFPlone#2446

@fredvd
Copy link
Member

fredvd commented Mar 31, 2020

Closing this pull request as the altenative pull request in #71 was merged which also fixes the relation widgets. Please re-open if I misunderstood this.

@fredvd
Copy link
Member

fredvd commented Jul 21, 2020

Reopening this myself as it hints to the problems in #31. At least part of this pull request makes sense to enable having vocabularies on field in the datagridfield, where the context is pulled from the parentForm and set on the subform.

However, setting context on its widgets doesn't help, because the widget is reinstantiated in:

https://github.com/zopefoundation/z3c.form/blob/7b1f92e3b238d6bccdf9f4e6d2bf85522737cb07/src/z3c/form/field.py#L248-L262

If only we could get self.content on line 262 in fields.py to be the contet and not NO_VALUE .....

@fredvd fredvd reopened this Jul 21, 2020
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

Successfully merging this pull request may close these issues.

Context is not present in vocabulary factory
3 participants