misc/migration/3.7.5_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Thu, 19 Sep 2013 18:11:12 +0200
branchstable
changeset 9234 ce504d23edf7
parent 5326 0d9054eb3bd1
permissions -rw-r--r--
[staticcontrollers] Raise Forbidden, not Unauthorized Unauthorized means "log in to get access", as it results in a HTTP 401. Here, the error is pretty much permanent, and returning 401 instead of 403 confuses things terribly. (This seems to be a pretty widespread confusion :/)

if versions_map['cubicweb'][0] == (3, 7, 4):
    config['http-session-time'] *= 60
    config['cleanup-session-time'] *= 60
    config['cleanup-anonymous-session-time'] *= 60