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

Missing storages' db_path attribute requirement #129

Open
Coder-DG opened this issue Apr 4, 2017 · 3 comments
Open

Missing storages' db_path attribute requirement #129

Coder-DG opened this issue Apr 4, 2017 · 3 comments

Comments

@Coder-DG
Copy link
Collaborator

Coder-DG commented Apr 4, 2017

At ghost.py line 298 Stash is trying to access the storage's db_path attribute. Since there's no demand that that attribute should reside in the storage, the program crashes due to an AttributeError.

@Coder-DG Coder-DG added the bug label Apr 4, 2017
@Coder-DG Coder-DG changed the title Stash accesses db_path storage attribute breaking encapsulation Missing storage db_path attribute requirement Apr 4, 2017
@Coder-DG Coder-DG added enhancement and removed bug labels Apr 4, 2017
@Coder-DG Coder-DG changed the title Missing storage db_path attribute requirement Missing storages' db_path attribute requirement Apr 4, 2017
@nir0s
Copy link
Owner

nir0s commented Apr 6, 2017

I don't quite understand what it means that there's no requirement. Every storage must implement a constructor which receives db_path. Yes, it's not "documented", but the tests will fail if you don't provide such an attribute.

@Coder-DG
Copy link
Collaborator Author

Coder-DG commented Apr 6, 2017 via email

@nir0s
Copy link
Owner

nir0s commented Nov 28, 2017

That would be great.

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

No branches or pull requests

2 participants