1. 08 Oct, 2019 1 commit
  2. 12 Jun, 2019 1 commit
    • Laurent Peuch's avatar
      [pyramid/debug] on every request display request path and selected controller · 90348f847b4b
      Laurent Peuch authored
      This will display lines like:
      
      2019-06-12 16:26:57 - (cubicweb.pyramid.bwcompat) INFO: REQUEST [view] '/wiki/334037' selected controller <cubicweb.web.views.basecontrollers.ViewController object at 0x7f133802ae90> at /root/.virtualenvs/abreton/local/lib/python2.7/site-packages/cubicweb/web/views/basecontrollers.py:120
      
      2019-06-12 16:26:59 - (cubicweb.pyramid.bwcompat) INFO: REQUEST [data] '/data/ea5eb3b6f89fba0ff4b671093c88d3dd/images/cartouche-mur.jpg' selected controller <cubicweb.web.views.staticcontrollers.DataController object at 0x7f1332a84d50> at /root/.virtualenvs/abreton/local/lib/python2.7/site-packages/cubicweb/web/views/staticcontrollers.py:179
      
      The make debugging easier as this isn't done already. Most other web frameworks
      do something similar for the developper to be able to understand what is
      happening right now.
      
      Closes #17219741
      90348f847b4b
  3. 29 Oct, 2018 2 commits
    • Philippe Pepiot's avatar
      Fix flake8 issues since release 3.6.0 · 2fcb53ee5178
      Philippe Pepiot authored
      Flake8 had a new release which raise new issues, namely:
      
      W504: line break after binary operator
      F841: local variable 'ex' is assigned to but never used
      W605: invalid escape sequence
      F821: undefined name 'buffer' (noqa seems the only way to avoid this false positive)
      
      Also pin flake8>=3.6 in our tests and make explicit that we use python3 to run
      flake8 tests.
      
      --HG--
      branch : 3.26
      2fcb53ee5178
    • Philippe Pepiot's avatar
      Fix flake8 issues since release 3.6.0 · c703dc95c82e
      Philippe Pepiot authored
      Flake8 had a new release which raise new issues, namely:
      
      W504: line break after binary operator
      F841: local variable 'ex' is assigned to but never used
      W605: invalid escape sequence
      F821: undefined name 'buffer' (noqa seems the only way to avoid this false positive)
      
      Also pin flake8>=3.6 in our tests and make explicit that we use python3 to run
      flake8 tests.
      c703dc95c82e
  4. 10 Feb, 2017 1 commit
  5. 09 Nov, 2016 2 commits
    • Sylvain Thénault's avatar
      [pyramid] Fix 404 handling · 4e0829ade86f
      Sylvain Thénault authored
      Avoid seeing a traceback in the UI by catching it before it reaches pyramid and
      restore usage of the '404' view.
      
      Closes #16159863
      
      --HG--
      branch : 3.24
      4e0829ade86f
    • Sylvain Thénault's avatar
      Fix broken flake8 configuration · f09efeead7f9
      Sylvain Thénault authored
      and flake8 errors which were hidden by this breakage.
      
      flake8 --filename options doesn't work as expected:
      
      * it's expected to be a shell pattern, using stdlib's fnmatch.fnmatch function
        internally. This funciton thinks that 'cubicweb/x.py' doesn't match 'cubicweb/x.py'
        (there must be a reason but that's not the point), hence no file was actually
        checked ;
      
      * as this is a list of pattern, each encountered file is checked against each
        pattern, leading to run time explosion.
      
      So maintain list of files to check in a separated file and give this list to
      flake8 using unix's xarg command.
      
      --HG--
      branch : 3.24
      f09efeead7f9
  6. 23 Jan, 2017 1 commit