1 import _pykit, _qt, _httpapi
3 mgr = _httpapi.Manager()
5 def ready(success, data):
6 print ">> response complete:", success, repr(data)
8 class Publisher(_pykit.Publisher):
9 def publish(self, request):
10 request.setContentType('text/html')
11 request.write("<html><body><h1>PyKit up and running</h1></body></html>")
12 mgr.post(u"http://home.j32.de/", "data",ready)
14 publisher = Publisher()