|
1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
|
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
|
3 # |
|
4 # This file is part of CubicWeb. |
|
5 # |
|
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
|
7 # terms of the GNU Lesser General Public License as published by the Free |
|
8 # Software Foundation, either version 2.1 of the License, or (at your option) |
|
9 # any later version. |
|
10 # |
|
11 # logilab-common is distributed in the hope that it will be useful, but WITHOUT |
|
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
|
13 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
|
14 # details. |
|
15 # |
|
16 # You should have received a copy of the GNU Lesser General Public License along |
|
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
1 """twisted server configurations: |
18 """twisted server configurations: |
2 |
19 |
3 * the "twisted" configuration to get a web instance running in a standalone |
20 * the "twisted" configuration to get a web instance running in a standalone |
4 twisted web server which talk to a repository server using Pyro |
21 twisted web server which talk to a repository server using Pyro |
5 |
22 |
6 * the "all-in-one" configuration to get a web instance running in a twisted |
23 * the "all-in-one" configuration to get a web instance running in a twisted |
7 web server integrating a repository server in the same process (only available |
24 web server integrating a repository server in the same process (only available |
8 if the repository part of the software is installed |
25 if the repository part of the software is installed |
9 |
26 |
10 :organization: Logilab |
|
11 :copyright: 2001-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. |
|
12 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
|
13 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
|
14 """ |
27 """ |
15 __docformat__ = "restructuredtext en" |
28 __docformat__ = "restructuredtext en" |
16 |
29 |
17 from os.path import join |
30 from os.path import join |
18 |
31 |
50 'help': 'if this option is set, use the specified user to start \ |
63 'help': 'if this option is set, use the specified user to start \ |
51 the repository rather than the user running the command', |
64 the repository rather than the user running the command', |
52 'group': 'main', 'inputlevel': WebConfiguration.mode == 'system' |
65 'group': 'main', 'inputlevel': WebConfiguration.mode == 'system' |
53 }), |
66 }), |
54 ('session-time', |
67 ('session-time', |
55 {'type' : 'int', |
68 {'type' : 'time', |
56 'default': 30*60, |
69 'default': '30min', |
57 'help': 'session expiration time, default to 30 minutes', |
70 'help': 'session expiration time, default to 30 minutes', |
58 'group': 'main', 'inputlevel': 1, |
71 'group': 'main', 'inputlevel': 1, |
59 }), |
72 }), |
60 ('profile', |
73 ('profile', |
61 {'type' : 'string', |
74 {'type' : 'string', |