By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,034 Members | 1,325 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,034 IT Pros & Developers. It's quick & easy.

updating (Cheetah) html in twisted webserver with Gadfly Database

P: n/a

i have a webserver with (approx.) the code below, but whatever i do
the html code sent to the browser stays the same.
The strangest is, if i insert a local variable in the class which is incremented
upon each call to self.render_GET() and append it to the html code, it
increments correctly on the browser. Could it be a probem with gadfly?
from twisted.web import resource, server

class webserv(resource.Resource):
isLeaf = True

def __init__(self):
#filling self.template with html code
#filling self._namespace with data for Cheetah

def update_namespace(self):
#call upon a gadfly- database and update the namespace

def render_GET(self, request):
return Template(self.template, searchList=[self._namespace]).__str__()
WebServer = webserv()
site = server.Site(WebServer)
reactor.listenTCP(80, site)
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.