cubicweb/pyramid/bwcompat.py
branch3.26
changeset 12432 2fcb53ee5178
parent 11967 83739be20fab
child 12741 90348f847b4b
equal deleted inserted replaced
12431:a570191d67b0 12432:2fcb53ee5178
   110                 # handled when raised from a cubicweb view.
   110                 # handled when raised from a cubicweb view.
   111                 # BUT the real handling of validation errors should be done
   111                 # BUT the real handling of validation errors should be done
   112                 # earlier in the controllers, not here. In the end, the
   112                 # earlier in the controllers, not here. In the end, the
   113                 # ValidationError should never by handled here.
   113                 # ValidationError should never by handled here.
   114                 content = self.appli.validation_error_handler(req, ex)
   114                 content = self.appli.validation_error_handler(req, ex)
   115             except cubicweb.web.RemoteCallFailed as ex:
   115             except cubicweb.web.RemoteCallFailed:
   116                 # XXX The default pyramid error handler (or one that we provide
   116                 # XXX The default pyramid error handler (or one that we provide
   117                 # for this exception) should be enough
   117                 # for this exception) should be enough
   118                 # content = self.appli.ajax_error_handler(req, ex)
   118                 # content = self.appli.ajax_error_handler(req, ex)
   119                 raise
   119                 raise
   120 
   120