typo fix
[pykit.git] / init.py
1 import _pykit, _qt, _httpapi
2
3 mgr = _httpapi.Manager()
4
5 def ready(success, data):
6     print ">> response complete:", success, repr(data)
7
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)
13
14 publisher = Publisher()
15
16 def initialize():
17     return publisher