Cannot use None as value for cubicweb.auth.authtkt options in pyramid.ini
If we want to use None
as value for cubicweb.auth.authtkt.session.max_age
, a TypeError
will be raised, since the following code try to cast None as an integer:
for name in ("timeout", "reissue_time", "max_age"):
value = settings.get(prefix + name, defaults.get(name, unset))
if value is not unset and value is not None:
kw[name] = int(value)
In the pyramid documentation about session, these three variables can be set with the None
value, so this is a bug.
I've write the Merge Request !582 (merged) to fix this problem.