Re: Python CGI Upload from Server Status

2008-06-06 Thread John Dohn
On Sat, Jun 7, 2008 at 12:50 AM, Derek Tracy <[EMAIL PROTECTED]> wrote: > I am trying to create a simple python cgi app that allows the user to kick > off an ftp from the server the cgi is on to another server; I have that > piece working using ftplib but since the files in question are usually ve

Re: How to kill a thread?

2008-06-06 Thread John Dohn
On Fri, Jun 6, 2008 at 10:30 PM, John Dohn <[EMAIL PROTECTED]> wrote: > Hi there, > > How can I kill a threading.Thread subclass from MainThread? At the end I did: def run(self): while True: if e

How to kill a thread?

2008-06-06 Thread John Dohn
Hi there, How can I kill a threading.Thread subclass from MainThread? My threads are waiting for data in Queue.get() method: class MyThread(threading.Thread): def run(self): while True: data = queue.get()# <- here it waits most of the time ... process data