Permalink
Browse files

make comet working

git-svn-id: http://evserver.googlecode.com/svn/trunk@75 e9bb6d7e-af12-11dd-bad7-87afd3b02348
  • Loading branch information...
1 parent 7f50e7b commit 23e0b174d053149f442a30e997c3c4d01360983b majek04 committed Feb 4, 2009
Showing with 7 additions and 3 deletions.
  1. +5 −1 evserver/examples/comet.py
  2. +1 −1 evserver/examples/static/index.html
  3. +1 −1 evserver/transports.py
@@ -1,7 +1,11 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
-import evserver.transports
+try:
+ import transports
+except ImportError:
+ import evserver.transports as transports
+
import os
import web
@@ -215,7 +215,7 @@
function create_ajax(url, method, data, onreadystatechange, mimetype) {
if(cross_domain)
- return comet_create_crossdomain_ajax('http://comet.'+document.domain+'/static/crossajax.html', url, method, data, onreadystatechange);
+ return comet_create_crossdomain_ajax('http://comet.'+cross_domain_domain+'/static/crossajax.html', url, method, data, onreadystatechange);
return comet_create_ajax(url, method, data, onreadystatechange, mimetype);
}
@@ -1,5 +1,5 @@
-import evserver.other.json as json
+import other.json as json
import os, os.path, logging
log = logging.getLogger(os.path.basename(__file__))

0 comments on commit 23e0b17

Please sign in to comment.