def __init__(self, service):
     
     self.service = service
     
     self.FDB = FolderDB()
     p = Portal(FTPRealm("", "JobLocation"),
                [self.FDB])
     
     FTPFactory.__init__(self, p)
Exemplo n.º 2
0
 def __init__(self, fn_uploaded, *args, **kwargs):
     assert callable(fn_uploaded)
     FTPFactory.__init__(self, *args, **kwargs)
     self.fn_uploaded = fn_uploaded
     self.protocol = CertFTP