[Twisted-Python] Woven b0rkage

Thomas Raschbacher lordvan at lordvan.com
Thu Apr 17 08:54:28 EDT 2003


hi!

woven b0rks here when i got an index.rpy which uses woven .. it does
endless redirects ... below is just a patch to comment it (whcih works
perfectly here..)

regards


--- /usr/portage/distfiles/cvs-src/Twisted/twisted/web/woven/controller.py
     2003-04-14 20:36:49.000000000 +0200
+++ /usr/lib/python2.2/site-packages/twisted/web/woven/controller.py   
2003-04-17 14:47:58.000000000 +0200
@@ -183,8 +183,8 @@
         DOM. gatheredControllers will render the page to the browser
         when it is done.
         """
-        if not request.prepath[-1] == '' and self.addSlash:
-            return redirectTo(addSlash(request), request)
+#        if not request.prepath[-1] == '' and self.addSlash:
+#            return redirectTo(addSlash(request), request)
         # Handle any inputhandlers that were passed in to the controller
first
         for ih in self._inputhandlers:
             ih._parent = self


-- 
-----BEGIN GEEK CODE BLOCK-----
GCS/CC/E/M/MU/S d- s: a--- C++++(++) UL++++ P+ L++++ E W+++ N+++ o-- K w-- O
M-- V- PS+ PE-- Y++ PGP+++ t+++ 5+ X- R tv b++++ DI- D+ G++ e-->+++++ h-- !r
z-
------END GEEK CODE BLOCK------


-----------------------------------------
This email was sent using SquirrelMail.
   "Webmail for nuts!"
http://squirrelmail.org/






More information about the Twisted-Python mailing list