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

Allow to extend Add Sample behavior with adapters #1462

Merged
merged 26 commits into from
Oct 20, 2019

Conversation

xispa
Copy link
Member

@xispa xispa commented Oct 17, 2019

Description of the issue/feature this PR addresses

This PR comes with some refactoring of Add Sample logic to allow add-ons to extend/modify the behavior of the view without the need of javascript.

Use case/example

The following Pull Request in senaite.health is an example on how to modify the behavior of Sample Add form by using adapters: Remove Add Sample view js and use field adapters instead #149

Current behavior before PR

Not possible to change the behavior of Add Sample without js

Desired behavior after PR is merged

Possible to change the behavior of Add Sample without js

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

Copy link
Contributor

@ramonski ramonski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for these improvements and code removals! 🥇

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

Successfully merging this pull request may close these issues.

2 participants