web/webconfig.py
branchstable
changeset 2087 88fa02f50e71
parent 1977 606923dff11b
child 2267 e1d2df3f1091
equal deleted inserted replaced
2086:be76ce00a05e 2087:88fa02f50e71
     4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
     4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     7 """
     7 """
     8 __docformat__ = "restructuredtext en"
     8 __docformat__ = "restructuredtext en"
       
     9 _ = unicode
     9 
    10 
    10 import os
    11 import os
    11 from os.path import join, exists, split
    12 from os.path import join, exists, split
    12 
    13 
    13 from logilab.common.configuration import Method
    14 from logilab.common.configuration import Method
    14 from logilab.common.decorators import cached
    15 from logilab.common.decorators import cached
    15 
    16 
    16 from cubicweb.toolsutils import read_config
    17 from cubicweb.toolsutils import read_config
    17 from cubicweb.cwconfig import CubicWebConfiguration, register_persistent_options, merge_options
    18 from cubicweb.cwconfig import CubicWebConfiguration, register_persistent_options, merge_options
    18 
    19 
    19 _ = unicode
       
    20 
    20 
    21 register_persistent_options( (
    21 register_persistent_options( (
    22     # site-wide only web ui configuration
    22     # site-wide only web ui configuration
    23     ('site-title',
    23     ('site-title',
    24      {'type' : 'string', 'default': 'unset title',
    24      {'type' : 'string', 'default': 'unset title',