|
@@ -8,6 +8,7 @@ from lodel.context import LodelContext
|
8
|
8
|
from lodel import buildconf #No need to protect it in Contexts
|
9
|
9
|
|
10
|
10
|
LodelContext.expose_modules(globals(), {
|
|
11
|
+ 'lodel.logger' : 'logger',
|
11
|
12
|
'lodel.plugin.datasource_plugin': ['AbstractDatasource', 'DatasourcePlugin'],
|
12
|
13
|
'lodel.exceptions': ['LodelFatalError'],
|
13
|
14
|
'lodel.settings': 'Settings'})
|
|
@@ -101,7 +102,7 @@ lodelsite "%s", file exists')
|
101
|
102
|
lodelsite "%s" : %s' % (name, e))
|
102
|
103
|
|
103
|
104
|
#Child directories
|
104
|
|
- for mname, ccd in (('datas', data_path), ('ctx', ctx_path)):
|
|
105
|
+ for mname, ccd in [('datas', data_path), ('ctx', ctx_path)]:
|
105
|
106
|
ccd = data_path
|
106
|
107
|
for d in LODELSITE_INSTALL_MODEL[mname]:
|
107
|
108
|
to_create = os.path.join(ccd, d)
|
|
@@ -178,7 +179,7 @@ def make_confs(sitename, groups, extensions):
|
178
|
179
|
##@brief Delete all files related to a site
|
179
|
180
|
#@warning can lead to dirty bugs if the site is running...
|
180
|
181
|
def purge(sitename):
|
181
|
|
- for todel in name2paths:
|
|
182
|
+ for todel in name2paths(sitename):
|
182
|
183
|
try:
|
183
|
184
|
shutil.rmtree(todel)
|
184
|
185
|
except Exception as e:
|