[Twisted-Python] Woven page instances deferring to each other...

Mary Gardiner mary-twisted at puzzling.org
Wed Oct 8 01:55:03 EDT 2003

On Wed, Oct 08, 2003, Stuart Hungerford wrote:
> In another Woven page the application can detect these
> "error" states and I would like to optionally "defer" the HTML
> generation to the existing error pages:

I *think* here you mean "I'd like totally different HTML generated if
there is an error state", rather than "my check for the error returns a
Deferred object". Let me know if I'm wrong.

Since Deferred objects are a key part of Twisted, "defer" is probably
not the best choice of verb unless you mean "defer using a Deferred
object". (It's like talking to mathematicians about "clumps" of "things"
which is a pain, because they've overloaded the words "class", "set",
"group" and "category" among others.)

> So, my question is what's the best way to do this kind of thing
> in Woven?  I seem to recall something about expanding a Woven
> "macro" page being discussed on the list, but I'm still grepping
> for that.

Assuming you meant "I'd like totally different HTML generated if
there is an error state" you probably do want macros or something like
them. The best documentation I've seen on this is here:


More information about the Twisted-Python mailing list