typo fix
[pykit.git] / init.py
diff --git a/init.py b/init.py
index b0981f9..80d9e00 100644 (file)
--- a/init.py
+++ b/init.py
@@ -1,8 +1,17 @@
-import _pykit, _qt
+import _pykit, _qt, _httpapi
+
+mgr = _httpapi.Manager()
+
+def ready(success, data):
+    print ">> response complete:", success, repr(data)
 
 class Publisher(_pykit.Publisher):
     def publish(self, request):
         request.setContentType('text/html')
         request.write("<html><body><h1>PyKit up and running</h1></body></html>")
+        mgr.post(u"http://home.j32.de/", "data",ready)
 
 publisher = Publisher()
+
+def initialize():
+    return publisher