[medusa] Does Medusa's FTP Server have built in triggers?
Alexander Semenov
sav@u...
Mon, 21 May 2001 09:11:17 +0400
> Hello All,
> I am a total newbie to Python and Medusa for that matter. I want to
> use the ftpserver, however, I have to trigger some server side
> scriping after a file(s) is uploaded.
Better (more pythonic) use overloading instead callbacks.
You should look into ftp_server.py
I think you are interested in overloading recv_channel.handle_close()
or whole class recv_channel (about 40 lines of code) if you want
alternate file storing. You can, of cause, simply hack ftp_server.py.
WBR,
Alexander Semenov