Did I find the right examples for you? yes no

All Samples(79)  |  Call(19)  |  Derive(3)  |  Import(57)
A web resource.

src/t/x/txrabbitmq-HEAD/examples/webui.py   txrabbitmq(Download)
process = Process(nodeName, cookie)
rservice = RabbitMQControlService(process)
site = server.Site(resource.IResource(rservice), logPath=WEBLOGPATH)
 
application = service.Application('rabbitmqctl')

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/web/woven/tapestry.py   hortonworks-sandbox(Download)
from twisted.internet.defer import Deferred
 
from twisted.web.resource import Resource, IResource
from twisted.web.static import redirectTo, addSlash, File, Data
from twisted.web.server import NOT_DONE_YET
            if isinstance(p, Deferred):
                return util.DeferredResource(p)
            adapter = IResource(p, None)
            if adapter is not None:
                return adapter

src/z/o/zope.app.twisted-3.5.0/src/twisted/web/woven/tapestry.py   zope.app.twisted(Download)
from twisted.internet.defer import Deferred
 
from twisted.web.resource import Resource, IResource
from twisted.web.static import redirectTo, addSlash, File, Data
from twisted.web.server import NOT_DONE_YET
            if isinstance(p, Deferred):
                return util.DeferredResource(p)
            adapter = IResource(p, None)
            if adapter is not None:
                return adapter

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/doc/core/howto/tutorial/listings/finger/finger/finger.py   oh-mainline(Download)
 
    # website on port 8000
    r = resource.IResource(f)
    r.templateDirectory = config['templates']
    site = server.Site(r)

src/t/w/Twisted-13.2.0/doc/core/howto/tutorial/listings/finger/finger/finger.py   Twisted(Download)
 
    # website on port 8000
    r = resource.IResource(f)
    r.templateDirectory = config['templates']
    site = server.Site(r)

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/doc/core/howto/tutorial/listings/finger/finger22.py   oh-mainline(Download)
internet.TCPServer(79, IFingerFactory(f)
                   ).setServiceParent(serviceCollection)
site = server.Site(resource.IResource(f))
internet.TCPServer(8000, site
                   ).setServiceParent(serviceCollection)

src/t/w/Twisted-13.2.0/doc/core/howto/tutorial/listings/finger/finger22.py   Twisted(Download)
internet.TCPServer(79, IFingerFactory(f)
                   ).setServiceParent(serviceCollection)
site = server.Site(resource.IResource(f))
internet.TCPServer(8000, site
                   ).setServiceParent(serviceCollection)

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/doc/core/howto/tutorial/listings/finger/finger22.py   hortonworks-sandbox(Download)
internet.TCPServer(79, IFingerFactory(f)
                   ).setServiceParent(serviceCollection)
site = server.Site(resource.IResource(f))
internet.TCPServer(8000, site
                   ).setServiceParent(serviceCollection)

src/z/o/zope.app.twisted-3.5.0/src/twisted/web/static.py   zope.app.twisted(Download)
            processor = self.processors.get(fpath.splitext()[1])
        if processor:
            return resource.IResource(processor(fpath.path, self.registry))
        return self.createSimilarFile(fpath.path)
 

src/p/u/punjab-0.15/punjab/__init__.py   punjab(Download)
        b = httpb.HttpbService(config['verbose'], config['polling'])
        if config['httpb'] == '':
            r.putChild('http-bind', resource.IResource(b))
        else:
            r.putChild(config['httpb'], resource.IResource(b))

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