I am a little confused, and I haven't been able to find anything in the Twisted docs regarding this?
pool = threadpool.ThreadPool ()
root = Resource ()
root.putChild ("resources", File( server_root + os.sep + "resources") )
root.putChild ("thumbnails", File( server_root + os.sep + "thumbnails") )
root.putChild ("templates", File( server_root + os.sep + "templates") )
root.putChild ("albums", Gallery() )
factory = Site ( root )
print "Listening on Port 8888..."
reactor.listenTCP ( 8888, factory)
reactor.run()