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', |