Did I find the right examples for you? yes no

All Samples(278)  |  Call(0)  |  Derive(0)  |  Import(278)
Static resources for L{twisted.web}.

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/doc/web/examples/web.py   hortonworks-sandbox(Download)
 
from twisted.internet import reactor
from twisted.web import static, server, vhost, twcgi, script, trp
 
root = static.File("static")

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/doc/web/examples/web.py   oh-mainline(Download)
 
from twisted.internet import reactor
from twisted.web import static, server, vhost, twcgi, script
 
root = static.File("static")

src/t/w/Twisted-13.2.0/doc/web/examples/web.py   Twisted(Download)
 
from twisted.internet import reactor
from twisted.web import static, server, vhost, twcgi, script
 
root = static.File("static")

src/t/w/Twisted-13.2.0/doc/web/examples/rootscript.py   Twisted(Download)
"""
 
from twisted.web import vhost, static, script, server
from twisted.application import internet, service
 

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/doc/web/examples/silly-web.py   hortonworks-sandbox(Download)
 
from twisted.internet import reactor, protocol
from twisted.web import server, distrib, static
from twisted.spread import pb
 

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/doc/web/examples/rootscript.py   hortonworks-sandbox(Download)
from twisted.web import vhost, static, script
 
default = static.Data('text/html', '')
default.putChild('vhost', vhost.VHostMonsterResource())
resource = vhost.NameVirtualHost()

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/doc/web/examples/silly-web.py   oh-mainline(Download)
 
from twisted.internet import reactor, protocol
from twisted.web import server, distrib, static
from twisted.spread import pb
 

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/doc/web/examples/rootscript.py   oh-mainline(Download)
from twisted.web import vhost, static, script
 
default = static.Data('text/html', '')
default.putChild('vhost', vhost.VHostMonsterResource())
resource = vhost.NameVirtualHost()

src/t/w/Twisted-13.2.0/doc/web/examples/silly-web.py   Twisted(Download)
 
from twisted.internet import reactor, protocol
from twisted.web import server, distrib, static
from twisted.spread import pb
 

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/doc/core/examples/shaper.py   hortonworks-sandbox(Download)
 
if servertype == "web":
    from twisted.web import server, static
    site = server.Site(static.File("/var/www"))
    site.protocol = htb.ShapedProtocolFactory(site.protocol, webFilter)

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next