pyramid_cubicweb/bwcompat.py
changeset 11511 13e0f569684c
parent 11505 eca6387f5b87
child 11537 caf268942436
--- a/pyramid_cubicweb/bwcompat.py	Thu Sep 18 17:18:09 2014 +0200
+++ b/pyramid_cubicweb/bwcompat.py	Fri Sep 19 19:17:50 2014 +0200
@@ -45,9 +45,9 @@
         vreg = request.registry['cubicweb.registry']
 
         try:
+            content = None
             try:
                 with cw_to_pyramid(request):
-                    cors.process_request(req, vreg.config)
                     ctrlid, rset = self.appli.url_resolver.process(req, req.path)
 
                     try:
@@ -69,8 +69,6 @@
                         # commited = True
                         if txuuid is not None:
                             req.data['last_undoable_transaction'] = txuuid
-            except cors.CORSPreflight:
-                request.response.status_int = 200
             except cubicweb.web.ValidationError as ex:
                 # XXX The validation_error_handler implementation is light, we
                 # should redo it better in cw_to_pyramid, so it can be properly