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

Remove senaite.instruments dependency for instrument import form #1482

Merged
merged 2 commits into from
Nov 29, 2019

Conversation

xispa
Copy link
Member

@xispa xispa commented Nov 28, 2019

Description of the issue/feature this PR addresses

This Pull Request removes the dependency of senaite.instruments for when an instrument interface is added in another add-on. See the linked issue for further details.

@mikejmets , I've undone some of the changes you did in #1349 . Better use a named adapter or similar to handle templates from senaite.instruments rather than forcing the user to manually install senaite.instruments add-on to make their own to work. This said, I think that at some point, the whole dataimport.py and machinery behind (including the import form rendering through ajax) should be revisited/refactored.

Linked issue: #1415

Current behavior before PR

Error when adding an instrument import interface in a custom add-on if senaite.instruments is not installed.

Desired behavior after PR is merged

No error when adding an instrument import interface in a custom add-on.

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

@xispa xispa requested a review from mikejmets November 28, 2019 10:56
@xispa xispa added Cleanup 🧹 Code cleanup and refactoring Bug 🐞 labels Nov 28, 2019
@ramonski ramonski merged commit bba400b into master Nov 29, 2019
@ramonski ramonski deleted the i1415 branch November 29, 2019 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐞 Cleanup 🧹 Code cleanup and refactoring
Development

Successfully merging this pull request may close these issues.

2 participants