gavo.formal.twistedpatch module¶
Code to add some basic nevow functionality back to twisted.
This needs to be imported as early as possible after importing twisted.web for the first time.
The features were adding include:
have nevow tag[] syntax again.
swallow attributes with None values in tags
(Ab)use slotData to manage what was nevow:data, pass it into the render method as tag.slotData
functions are allowed as render values
-
class
gavo.formal.twistedpatch.
Raw
[source]¶ Bases:
object
a thing to stick into stan trees that can write whatever it wants into the serialised result.
Just override getContent and return a byte string from it.