Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
Date: Sun Apr 2 13:38:06 2006
New Revision: 4971
As suggested by John Dickinson, AjaxPage can not tell the client to stop polling.
--- Webware/trunk/WebKit/Examples/AjaxPage.py (original)
+++ Webware/trunk/WebKit/Examples/AjaxPage.py Sun Apr 2 13:38:06 2006
@@ -132,7 +132,11 @@
self._responseQueue[who] = 
self.log("Ajax returns from queue: " + cmd)
- self.write(cmd) # write out at least the wait variable
+ if self.debug:
+ self.log("Ajax tells the client to stop polling.")
+ cmd = 'dying = true;'
+ self.write(cmd) # write out at least the wait variable
"""Execute function f with arguments a on the server side.