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

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)
This is a variation of the Client class from circuits that
fixes a problem with channel names and provides a slightly
simplified interface that doesn't need explicit connect events.

src/c/o/cocy-0.1.12/cocy/upnp/adapters/adapter.py   cocy(Download)
from inspect import getmembers, ismethod
from StringIO import StringIO
from circuits_bricks.web.client import Client, Request
from cocy.upnp.service import UPnPService
from circuits_bricks.app.logger import Log

src/c/i/circuits-bricks-0.3/tests/WebClient.py   circuits-bricks(Download)
import unittest
from errno import ETIMEDOUT
from circuits_bricks.web.client import Client, Request
from circuits.core.manager import Manager
from circuits.web.servers import BaseServer
    def test_absolute(self):
        app = Client("http://localhost:%d/hallo" % self.server.port,
                     channel="TestClient")
        app.start()
        app.fire(Request("GET", "http://localhost:%d/test" % self.server.port))
    def test_relative(self):
        app = Client("http://localhost:%d/test" % self.server.port,
                     channel="TestClient")
        app.start()
        app.fire(Request("GET", "test"))
    def test_timeout(self):
        app = Client("http://localhost:%d/hallo" % self.server.port,
                     channel="TestClient")
        self.error = None
        @handler("socket_error")