equal
deleted
inserted
replaced
13 from logilab.common.configuration import REQUIRED, Method, Configuration, \ |
13 from logilab.common.configuration import REQUIRED, Method, Configuration, \ |
14 ini_format_section |
14 ini_format_section |
15 from logilab.common.decorators import wproperty, cached, clear_cache |
15 from logilab.common.decorators import wproperty, cached, clear_cache |
16 |
16 |
17 from cubicweb import CW_SOFTWARE_ROOT, RegistryNotFound |
17 from cubicweb import CW_SOFTWARE_ROOT, RegistryNotFound |
18 from cubicweb.toolsutils import env_path, read_config, restrict_perms_to_user |
18 from cubicweb.toolsutils import read_config, restrict_perms_to_user |
19 from cubicweb.cwconfig import CubicWebConfiguration, merge_options |
19 from cubicweb.cwconfig import CubicWebConfiguration, merge_options |
20 from cubicweb.server import SOURCE_TYPES |
20 from cubicweb.server import SOURCE_TYPES |
21 |
21 |
22 |
22 |
23 USER_OPTIONS = ( |
23 USER_OPTIONS = ( |
73 |
73 |
74 |
74 |
75 class ServerConfiguration(CubicWebConfiguration): |
75 class ServerConfiguration(CubicWebConfiguration): |
76 """standalone RQL server""" |
76 """standalone RQL server""" |
77 name = 'repository' |
77 name = 'repository' |
78 if os.environ.get('APYCOT_ROOT'): |
|
79 root = os.environ['APYCOT_ROOT'] |
|
80 elif CubicWebConfiguration.mode == 'dev': |
|
81 BACKUP_DIR = CubicWebConfiguration.RUNTIME_DIR |
|
82 else: |
|
83 BACKUP_DIR = '/var/lib/cubicweb/backup/' |
|
84 |
78 |
85 cubicweb_appobject_path = CubicWebConfiguration.cubicweb_appobject_path | set(['sobjects', 'hooks']) |
79 cubicweb_appobject_path = CubicWebConfiguration.cubicweb_appobject_path | set(['sobjects', 'hooks']) |
86 cube_appobject_path = CubicWebConfiguration.cube_appobject_path | set(['sobjects', 'hooks']) |
80 cube_appobject_path = CubicWebConfiguration.cube_appobject_path | set(['sobjects', 'hooks']) |
87 |
81 |
88 options = merge_options(( |
82 options = merge_options(( |