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

Support relationwidget in subforms #2446

Closed
tomgross opened this issue Jun 16, 2018 · 1 comment
Closed

Support relationwidget in subforms #2446

tomgross opened this issue Jun 16, 2018 · 1 comment

Comments

@tomgross
Copy link
Member

tomgross commented Jun 16, 2018

BUG/PROBLEM REPORT (OR OTHER COMMON ISSUE)

Currently (with Plone 5.1.2) it is not possible to use the relatedwidget in subforms (like https://github.com/collective/collective.z3cform.datagridfield)

What I did:

  1. Create a z3c.form with a dict or object schema and a subform with a relation (https://github.com/collective/collective.z3cform.datagridfield/blob/master/src/collective/z3cform/datagridfield/demo/editform_object.py with an additional relation can act as an example here)
  2. Open form in browser

What I expect to happen:

  • Relations are selectable and stored on context.

What actually happened:

  • Content is not selectable in relation widget. The AJAX call (getSource) fails.

What version of Plone/ Addons I am using:

  • Plone 5.1.2
  • collective.z3cform.datagridfield 1.3.0+
tomgross added a commit to plone/plone.app.content that referenced this issue Jun 16, 2018
tomgross added a commit to plone/plone.app.z3cform that referenced this issue Jun 16, 2018
@tomgross tomgross changed the title Support relationwidget in subform Support relationwidget in subforms Jun 16, 2018
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Jun 17, 2018
Branch: refs/heads/master
Date: 2018-06-17T04:40:47+10:00
Author: Tom Gross (tomgross) <[email protected]>
Commit: plone/plone.app.content@e2e156d

Allow vocabulary to be called in subforms plone/Products.CMFPlone#2446

Files changed:
M CHANGES.rst
M plone/app/content/browser/vocabulary.py
Repository: plone.app.content

Branch: refs/heads/master
Date: 2018-06-17T08:23:43+02:00
Author: Philip Bauer (pbauer) <[email protected]>
Commit: plone/plone.app.content@9337a28

Merge pull request #157 from plone/tg_subforms

Allow vocabulary to be called in subforms

Files changed:
M CHANGES.rst
M plone/app/content/browser/vocabulary.py
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Jun 17, 2018
Branch: refs/heads/master
Date: 2018-06-17T04:40:47+10:00
Author: Tom Gross (tomgross) <[email protected]>
Commit: plone/plone.app.content@e2e156d

Allow vocabulary to be called in subforms plone/Products.CMFPlone#2446

Files changed:
M CHANGES.rst
M plone/app/content/browser/vocabulary.py
Repository: plone.app.content

Branch: refs/heads/master
Date: 2018-06-17T08:23:43+02:00
Author: Philip Bauer (pbauer) <[email protected]>
Commit: plone/plone.app.content@9337a28

Merge pull request #157 from plone/tg_subforms

Allow vocabulary to be called in subforms

Files changed:
M CHANGES.rst
M plone/app/content/browser/vocabulary.py
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Jun 17, 2018
Branch: refs/heads/master
Date: 2018-06-17T08:25:06+02:00
Author: Tom Gross (tomgross) <[email protected]>
Commit: plone/plone.app.layout@2237048

Helper  returns site, if context is not in aquisition chain (plone/Products.CMFPlone#2446) (#153)

Files changed:
M CHANGES.rst
M plone/app/layout/navigation/root.py
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Jun 17, 2018
Branch: refs/heads/master
Date: 2018-06-17T08:25:06+02:00
Author: Tom Gross (tomgross) <[email protected]>
Commit: plone/plone.app.layout@2237048

Helper  returns site, if context is not in aquisition chain (plone/Products.CMFPlone#2446) (#153)

Files changed:
M CHANGES.rst
M plone/app/layout/navigation/root.py
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Jun 18, 2018
Branch: refs/heads/master
Date: 2018-06-17T04:45:06+10:00
Author: Tom Gross (tomgross) <[email protected]>
Commit: plone/plone.app.z3cform@812d37e

Allow related items widget to be used in subforms plone/Products.CMFPlone#2446

Files changed:
M CHANGES.rst
M plone/app/z3cform/widget.py
Repository: plone.app.z3cform

Branch: refs/heads/master
Date: 2018-06-18T09:53:58+02:00
Author: Jens W. Klein (jensens) <[email protected]>
Commit: plone/plone.app.z3cform@665e209

Merge pull request #94 from plone/tg_subforms

Allow related items widget to be used in subforms

Files changed:
M CHANGES.rst
M plone/app/z3cform/widget.py
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Jun 18, 2018
Branch: refs/heads/master
Date: 2018-06-17T04:45:06+10:00
Author: Tom Gross (tomgross) <[email protected]>
Commit: plone/plone.app.z3cform@812d37e

Allow related items widget to be used in subforms plone/Products.CMFPlone#2446

Files changed:
M CHANGES.rst
M plone/app/z3cform/widget.py
Repository: plone.app.z3cform

Branch: refs/heads/master
Date: 2018-06-18T09:53:58+02:00
Author: Jens W. Klein (jensens) <[email protected]>
Commit: plone/plone.app.z3cform@665e209

Merge pull request #94 from plone/tg_subforms

Allow related items widget to be used in subforms

Files changed:
M CHANGES.rst
M plone/app/z3cform/widget.py
@tomgross
Copy link
Member Author

tomgross commented Jul 9, 2018

Plone part is OK. A reference implementation is here: collective/collective.z3cform.datagridfield#71

This needs to be revised with newer z3c.form since subwidget suport is gone.

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

1 participant