diff captchamiddleware/middleware.py @ 8:59245309f054 default tip

conform to modern version of lxmlmiddleware
author k0s <k0scist@gmail.com>
date Fri, 26 Feb 2010 15:40:56 -0500
parents ce757057961c
children
line wrap: on
line diff
--- a/captchamiddleware/middleware.py	Fri Feb 26 10:42:14 2010 -0500
+++ b/captchamiddleware/middleware.py	Fri Feb 26 15:40:56 2010 -0500
@@ -75,11 +75,9 @@
 
         return LXMLMiddleware.__call__(self, environ, start_response)
 
-    def manipulate(self, environ, tree):
+    def manipulate(self, request, response, tree):
         """manipulate the DOM; should return an etree._Element"""
 
-        request = Request(environ)
-
         # don't use CAPTCHAs for authorized users
         if request.remote_user:
             return tree