pyramid_cubicweb/bwcompat.py
changeset 11539 ff581d66f682
parent 11537 caf268942436
child 11575 97110b4af42f
--- a/pyramid_cubicweb/bwcompat.py	Sun Jan 04 00:12:29 2015 +0100
+++ b/pyramid_cubicweb/bwcompat.py	Mon Jan 05 15:54:12 2015 +0100
@@ -8,7 +8,7 @@
 
 from cubicweb.web.application import CubicWebPublisher
 
-from cubicweb.web import LogOut, cors
+from cubicweb.web import LogOut
 
 from pyramid_cubicweb.core import cw_to_pyramid
 
@@ -57,7 +57,8 @@
             content = None
             try:
                 with cw_to_pyramid(request):
-                    ctrlid, rset = self.appli.url_resolver.process(req, req.path)
+                    ctrlid, rset = self.appli.url_resolver.process(req,
+                                                                   req.path)
 
                     try:
                         controller = vreg['controllers'].select(
@@ -69,8 +70,8 @@
                     req.update_search_state()
                     content = controller.publish(rset=rset)
 
-                    # XXX this auto-commit should be handled by the cw_request cleanup
-                    # or the pyramid transaction manager.
+                    # XXX this auto-commit should be handled by the cw_request
+                    # cleanup or the pyramid transaction manager.
                     # It is kept here to have the ValidationError handling bw
                     # compatible
                     if req.cnx: