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 SFTPStorage to be configured via class variables #852

Merged

Conversation

DoctorJohn
Copy link
Contributor

This PR makes the SFTPStorage class configurable via class variables (similar to other backends). That way subclassing is more convenient. (#851).

As far as I can tell, these changes are backwards compatible.

@DoctorJohn DoctorJohn force-pushed the better-sftpstorage-subclassing branch from 658b1e8 to efc9046 Compare March 4, 2020 00:09
@jschneier
Copy link
Owner

Can you please rebase

@jschneier
Copy link
Owner

It looks good, will merge after

@jdufresne
Copy link
Contributor

I think this should hold off until #524 lands, and then use the approach developed there. That way we don't end up with the same issue in the SFTPStorage backend.

@DoctorJohn DoctorJohn force-pushed the better-sftpstorage-subclassing branch from efc9046 to c3c9060 Compare March 7, 2020 16:09
@DoctorJohn
Copy link
Contributor Author

@jschneier I rebased, however @jdufresne has a point. After #524 landed, I could alter this PR or drop it and create a new one, that has the same affect but uses "the style" introduced in #524.

@jdufresne
Copy link
Contributor

The other PR has landed, this could be rebased and updated if you'd like.

@jschneier
Copy link
Owner

@DoctorJohn are you interested in updating this? I'm going to make another release imminently.

@DoctorJohn DoctorJohn force-pushed the better-sftpstorage-subclassing branch 2 times, most recently from 8b24816 to 102e813 Compare April 27, 2020 12:03
@DoctorJohn DoctorJohn force-pushed the better-sftpstorage-subclassing branch from 102e813 to 4bea4fb Compare April 27, 2020 12:39
@DoctorJohn
Copy link
Contributor Author

@jschneier I just updated the SFTPStorage backend to use the settings mechanism introduced in #524 while keeping everything backwards compatible.

@jschneier jschneier merged commit 0153674 into jschneier:master Apr 27, 2020
mlazowik pushed a commit to qedsoftware/django-storages that referenced this pull request Mar 9, 2022
mlazowik pushed a commit to qedsoftware/django-storages that referenced this pull request Mar 9, 2022
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

Successfully merging this pull request may close these issues.

3 participants