-
-
Notifications
You must be signed in to change notification settings - Fork 868
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
Comments
Sure, would absolutely accept a PR
…On Tuesday, March 3, 2020, DoctorJohn ***@***.***> wrote:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#851?email_source=notifications&email_token=AAREDWCXIQORGOS7IZPA2DTRFVSRZA5CNFSM4LASPLZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ISEUYJQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAREDWBEVGNEEUXURKKFEQDRFVSRZANCNFSM4LASPLZA>
.
|
@jschneier I prepared a PR (#852), it's ready to be reviewed. |
Closed via #852 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: