[Twisted-Python] Rendering Woven pages from non-Woven resources?
stuart.hungerford at anu.edu.au
Mon Oct 20 00:35:32 EDT 2003
I have a twisted web application that was created without the
benefit of Woven, where HTML is generated in subclasses of
Resource in the class' render() method. This is my "old"
I also have a "new" application where most HTML is generated
via subclasses of the Woven page class using various factory
I'd like to standardize both applications to use the Page
subclasses from the "new" application and the HTML they
So ideally I'd have:
isLeaf = 1
templateFile = 'new.xhtml'
def wmfactory_something(self, request)
isLeaf = 1
def render(self, request):
# get new_page() rendered from here
To make that last commented bit work, do I need to override
a new render() method for new_page that duplicates the
factory methods etc? Or can I get the same effect another way?
Any advice much appreciated,
:: Stuart Hungerford (stuart.hungerford at anu.edu.au)
:: ANU Internet Futures Group
More information about the Twisted-Python