Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/w/s/wsgid-0.9/wsgid/servers/circuitsweb.py   wsgid(Download)
 
from circuits.web import BaseServer, wsgi
from circuits.core.workers import cpus, processes
from circuits.net.pollers import EPoll, Poll, Select
 
    def start(self):
        self.server = BaseServer(self.conf.port, poller=Select)
        self.server += wsgi.Gateway(self.app)
        for i in xrange(cpus() - 1):
            self.server.start(process=True)