13 Nov
2003
13 Nov
'03
4:36 p.m.
from twisted.web.woven.page import Page from twised.internet import defer
class OurPage(Page): template = '''<html><body> <p model="deferredModel" view="Text"></p> </body></html>''' def wmfactory_deferredModel(self, request): """ returns an already callbacked Deferred with the string 'Hello world' as it's result """ return defer.succeed('Hello world')
Okay?
Lovely :) thank you !