misc/migration/3.4.0_common.py
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 11 Dec 2012 16:57:18 +0100
branchstable
changeset 8611 51068fe1e39a
parent 2489 37a747ad6fd4
child 8798 cdab3aadc679
permissions -rw-r--r--
[web] allow configuration of the Content-disposition value The `set_content_type` function now takes and optional `disposition` parameter to control the value of this HTTP header. Use of `Content-disposition: inline` with a filename parameter are valid, so the presence of filename does not allows to choose between `attachment` and `inline`

from os.path import join
from cubicweb.toolsutils import create_dir

option_renamed('pyro-application-id', 'pyro-instance-id')

create_dir(join(config.appdatahome, 'backup'))