[Twisted-Python] Subclassing Resource, problems accessing persistent data/using registry

Alex Levy mesozoic at polynode.com
Thu Jun 19 00:04:11 MDT 2003


If what you're looking to do is make site-wide templates for your pages,
subclassing Resource may be overkill.  twisted.web.woven provides a very
flexible, powerful way of generating web pages.

Glance through the Woven HOWTOs on the Twisted site.  Of particular help to
me was PicturePile, a step-by-step example of a basic Woven application
<http://twistedmatrix.com/documents/howto/picturepile>.

I use Woven to generate my own site, and while my code is nowhere near being
finished (or even worth making public), it works.  My experience is that,
given a bit of patience and a willingness to ask for help [try #twisted],
you can get a lot done.

(I make heavy use of woven.widgets.ExpandMacro, which is not mentioned in
the online docs [as far as I can tell].  You may find it useful also.)

-- 
Alex Levy
WWW: http://mesozoic.geecs.org

"Never let your sense of morals prevent you from doing what is right."
 -- Salvor Hardin, Isaac Asimov's _Foundation_




More information about the Twisted-Python mailing list