OPSI.web2.channel package

Module contents

Various backend channel implementations for web2.

OPSI.web2.channel.startCGI(site)

Call this as the last thing in your CGI python script in order to hook up your site object with the incoming request.

E.g.: >>> from OPSI.web2 import channel, server >>> if __name__ == ‘__main__’: ... channel.startCGI(server.Site(myToplevelResource))

class OPSI.web2.channel.SCGIFactory(requestFactory)

Bases: twisted.internet.protocol.ServerFactory

buildProtocol(addr)
protocol

alias of SCGIChannelRequest

class OPSI.web2.channel.HTTPFactory(requestFactory, maxRequests=600, **kwargs)

Bases: twisted.internet.protocol.ServerFactory

Factory for HTTP server.

buildProtocol(addr)
outstandingRequests = 0
protocol

alias of HTTPChannel

protocolArgs = None
class OPSI.web2.channel.FastCGIFactory(requestFactory)

Bases: twisted.internet.protocol.ServerFactory

buildProtocol(addr)
protocol

alias of FastCGIChannelRequest