[Twisted-Python] PATCH: twisted.web.util.Redirect.isLeaf := 1
Matthias Urlichs
smurf at smurf.noris.de
Mon May 12 04:31:09 MDT 2003
twisted.web.util.Redirect should set its own isLeaf.
Callers can then use "return Redirect(...)" instead of the cumbersome
"rd = Redirect(); rd.isLeaf=1; return rd" I'm seeing.
--- 1.10/twisted/web/util.py Mon Apr 28 00:34:10 2003
+++ edited/twisted/web/util.py Mon May 12 12:25:02 2003
@@ -29,6 +29,7 @@
def __init__(self, url):
resource.Resource.__init__(self)
self.url = url
+ self.isLeaf = 1
def render(self, request):
return redirectTo(self.url, request)
--
Matthias Urlichs | {M:U} IT Consulting @ m-u-it.de | smurf at smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
--
Real Users know your home telephone number.
More information about the Twisted-Python
mailing list