[Twisted-web] using livepage
John Horton
john.horton at blackspider.com
Wed Jul 27 03:22:27 MDT 2005
Hi
I have looked through the examples and the archives but cannot find what
I am looking for.
I need to be able to create a piece of HTML that is updated once a
second via livepage.
currently my html looks like
<html><head></head>
<body>
<span class="time"><nevow:slot name="time" /></span>
</body></head></html>
and the python looks like
def render_time(self, context, data):
context.fillSlots('time', '%s' % time.ctime())
return context.tag
but I need to refresh the browser to update the time - can anyone point
me in the right direction so that the time is constantly updated?
Thanks
John
This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
More information about the Twisted-web
mailing list