durusmail: durus-users: Example: starting a Durus server in another thread
Example: starting a Durus server in another thread
2006-08-19
2006-08-31
2006-08-31
Example: starting a Durus server in another thread
Damjan
2006-08-31
> It's very simple:

Probably even simpler:

import thread
from durus.storage_server import StorageServer
from durus.file_storage import FileStorage

storage=FileStorage('storage-file.db')
server = StorageServer(address='durus.sock', storage=storage)

thread.start_new_thread(server.serve, ())

Now, what's needed to setup the loging that StorageServer uses so that I
don't get it's output on stderr/stdout?


--
damjan | дамјан
This is my jabber ID -->         damjan@bagra.net.mk
 -- not my mail address, it's a Jabber ID --^ :)
reply