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

Fix code examples for widgets #1568

Open
stevepiercy opened this issue Nov 4, 2023 · 2 comments
Open

Fix code examples for widgets #1568

stevepiercy opened this issue Nov 4, 2023 · 2 comments

Comments

@stevepiercy
Copy link
Contributor

The documentation seems good, but there are certain things that does not 'work' for widgets / groups.

Example:

    if group.__name__ == 'something':
                    #Not working
                    #group.widgets['due_date'].disabled='disabled'
                    #group.widgets['due_date'].template = Z3ViewPageTemplateFile("my_template.pt")
                    #Works
                    group.widgets['due_date'].mode = interfaces.HIDDEN_MODE

NOTE: all works for default fieldset / 'without group'

                   self.widgets['due_date'].disabled='disabled'
                   self.widgets['due_date'].template = Z3ViewPageTemplateFile("my_template.pt")
                   self.widgets['due_date'].mode = interfaces.HIDDEN_MODE

Originally posted by @espenmn in #1461 (comment)

@petschki
Copy link
Member

petschki commented Nov 6, 2023

See my comment here https://community.plone.org/t/disabled-widgets-mode-plone-6-classic/18090/12

This is an issue in current p.a.z3cform==4.3.x for certain widgets but fixed in 4.4.x

@stevepiercy
Copy link
Contributor Author

@petschki @espenmn can you elaborate here what is the issue, and whether this issue should remain open with a proposed fix, or closed? Thank you!

@stevepiercy stevepiercy added this to the Plone 6.1 milestone Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants