1. 21 Jan, 2015 2 commits
  2. 16 Jan, 2015 1 commit
  3. 05 Jan, 2015 1 commit
  4. 03 Jan, 2015 2 commits
  5. 05 Jan, 2015 1 commit
  6. 03 Jan, 2015 3 commits
  7. 23 Dec, 2014 1 commit
  8. 02 Jan, 2015 1 commit
  9. 02 Dec, 2014 1 commit
  10. 08 Dec, 2014 3 commits
  11. 15 Nov, 2014 2 commits
  12. 08 Nov, 2014 1 commit
    • Christophe de Vienne's avatar
      Don't rollback if exception is HTTPSuccessful or HTTPRedirection · 54c83bfda277
      Christophe de Vienne authored
      In the request finishing, the 'cleanup' callback set by _cw_cnx
      automatically commit the transaction except is an exception is set
      on the request.
      
      Problem is, redirections and successul http return code can raise
      exceptions.
      
      This patch detects such exceptions and avoid rolling back the transaction.
      
      Closes #4566482
      54c83bfda277
  13. 06 Nov, 2014 2 commits
  14. 02 Nov, 2014 3 commits
  15. 23 Oct, 2014 3 commits
  16. 06 Oct, 2014 1 commit
  17. 22 Oct, 2014 1 commit
  18. 22 Sep, 2014 2 commits
    • Christophe de Vienne's avatar
      Optimise repo_connect by skipping authenticate_user · 0170f8a55620
      Christophe de Vienne authored
      The authentication being handled by pyramid itself, going through the
      authentication stack to recreate the temporary session at each request is very
      costly.
      
      On my desktop, for a mostly static front page, the total time for delivering
      the page drops from 100ms to 47ms.
      0170f8a55620
    • Christophe de Vienne's avatar
      Use lightweight sessions · bb548010b390
      Christophe de Vienne authored
      Provides a lightweight version of repo.connect() that does not keep track of
      opened sessions.
      
      The speed gain on a mostly static front page is about 5%
      
      Warning ! This means that, for now, the "session_open" and "session_close"
      hooks are NOT called anymore.
      bb548010b390
  19. 19 Sep, 2014 1 commit
    • Christophe de Vienne's avatar
      Use 'wsgicors' for CORS handling. · 13e0f569684c
      Christophe de Vienne authored
      The CW CORS handling (in web/cors.py) is only able to work on cubicweb requests.
      When a request is not handled by bwcompat, we need a proper solution.
      The `wsgicors` library provides what we need as a wsgi middleware.
      13e0f569684c
  20. 18 Sep, 2014 4 commits
  21. 19 Sep, 2014 1 commit
  22. 02 Sep, 2014 2 commits
  23. 28 Aug, 2014 1 commit
    • Christophe de Vienne's avatar
      Add a wsgi application factory suitable for wsgi servers. · ddf61aa73384
      Christophe de Vienne authored
      This factory can generate a wsgi application for a cubicweb instance.
      It reads the instance name from the CW_INSTANCE environment variable, and
      activates the debugmode if CW_DEBUG is defined in environment.
      
      It is usable by uwsgi as the 'module' parameter :
      
          CW_INSTANCE=test uwsgi --plugins python,http --http 0.0.0.0:8080 --module pyramid_cubicweb:wsgi_application()
      ddf61aa73384