[Twisted-Python] Creating a dynamic FTP server
Hi, I've been poking around in the code and documentation for a bit now and wanted to see if the following project would be doable with twisted before I actually started coding it: We want a FTP server where all the files and directories are "virtual." The actual files would be in a database and the folders shown to a user would be based on the time of day and who the user is. When getting or putting a file it would pull or put it into the database backend. Would something like this be possible with the twisted FTP module? Thanks, -Jason
On Mar 14, 2005, at 5:26 PM, Jason Rust wrote:
Hi, I've been poking around in the code and documentation for a bit now and wanted to see if the following project would be doable with twisted before I actually started coding it:
We want a FTP server where all the files and directories are "virtual." The actual files would be in a database and the folders shown to a user would be based on the time of day and who the user is. When getting or putting a file it would pull or put it into the database backend.
Would something like this be possible with the twisted FTP module? Thanks, -Jason
__________________
well, it would, but you should be forewarned that the twisted FTP module is buggy and messy. I know that because I wrote the server implementation. ;) Oh, also there's no implementation for PUT, which kind of sucks. But since you want to make the backend virtual, it shouldn't be too hard (well, *impossible*) to make it work. I've been meaning to go back and fix this code for a long time, but it just keeps getting pushed off. Anyway, if you have specific questions about the implementation, I may be able to assist you. -Jonathan Simms
On Mon, 14 Mar 2005 14:26:52 -0800, Jason Rust <jrust@rustyparts.com> wrote:
Hi, I've been poking around in the code and documentation for a bit now and wanted to see if the following project would be doable with twisted before I actually started coding it:
We want a FTP server where all the files and directories are "virtual." The actual files would be in a database and the folders shown to a user would be based on the time of day and who the user is. When getting or putting a file it would pull or put it into the database backend.
Would something like this be possible with the twisted FTP module? Thanks, -Jason
unless you just HAVE to have FTP a WebDAV solution would be MUCH better suited for "virtual" assests like you describe
participants (3)
-
jarrod roberson
-
Jason Rust
-
Jonathan Simms