Verfasst: Freitag 23. Oktober 2009, 18:35
oh mann, sorry ich meine javaSCRIPT (ich lerns nie)
Seit 2002 Diskussionen rund um die Programmiersprache Python
https://www.python-forum.de/
Danke erstmal, ich werde weitersuchen... (polling is doof!)Cometd is a scalable HTTP-based event routing bus that uses a Ajax Push technology pattern known as Comet. The term 'Comet' was coined by Alex Russell in his post Comet: Low Latency Data for the Browser.
Hallo py_lo!py_lo hat geschrieben:(polling is doof!)
Das passiert auch beim einfachen "Grundbeispiel" von GeroldTraceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 606, in respond
cherrypy.response.body = self.handler()
File "/usr/local/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "ajaxtest_server.py", line 131, in index
return unicode(template)
File "/usr/local/lib/python2.7/site-packages/Cheetah/Template.py", line 1010, in __unicode__
return getattr(self, mainMethName)()
TypeError: unbound method respond() must be called with media_HDD_Server_index_tmpl instance as first argument (got nothing instead)
Code: Alles auswählen
class Root(object):
def index(self, *args, **kwargs):
template = Template(file = os.path.join(THISDIR, "index.tmpl"))
return unicode(template)
index.exposed = True
Code: Alles auswählen
#encoding utf-8