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

Subclassing SFTPStorage #851

Closed
DoctorJohn opened this issue Mar 3, 2020 · 3 comments
Closed

Subclassing SFTPStorage #851

DoctorJohn opened this issue Mar 3, 2020 · 3 comments

Comments

@DoctorJohn
Copy link
Contributor

I'd like to subclass the SFTPStorage class so that I can have multiple SFTP backends. That's already conveniently possible with most of the other backends, as their settings can be provided using class variables.

The SFTPStorage class, however, only works with global settings or parameters passed to it's __init__ method. Thus subclassing requires overriding __init__, which doesn't feel as clean as providing class variables.

Is this intended? Otherwise I could create an PR which would adjust the SFTPStorage to allow convenient subclassing similar to the other backends.

@jschneier
Copy link
Owner

jschneier commented Mar 3, 2020 via email

@DoctorJohn
Copy link
Contributor Author

@jschneier I prepared a PR (#852), it's ready to be reviewed.

@jschneier
Copy link
Owner

Closed via #852

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