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

No longer pass session_maker to widgets #382

Closed
sssoleileraaa opened this issue May 22, 2019 · 3 comments
Closed

No longer pass session_maker to widgets #382

sssoleileraaa opened this issue May 22, 2019 · 3 comments

Comments

@sssoleileraaa
Copy link
Contributor

Follow-up for #374, which introduces passing around sqlalchemy's scoped_session to GUI widgets in order to access up-to-date database objects.

See if we can instead use the Controller to remove this sqlalchemy dependecy in the GUI.

@heartsucker
Copy link
Contributor

Are you suggesting passing a full reference to the Controller to each widget?

@sssoleileraaa
Copy link
Contributor Author

I think we need to stop passing around session unless we really need to. See my latest commit to resolve this issue: e21084e

@sssoleileraaa
Copy link
Contributor Author

This has been fixed.

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

2 participants