misc: add slug to cubes (#38597)
This also reverts commit 084b0d06b4
,
which has never been actually used.
This commit is contained in:
parent
a368ae716b
commit
c304e0f8f8
|
@ -224,6 +224,7 @@ pg_dsn = {dsn}
|
|||
orig = olap
|
||||
key = olap
|
||||
schema = olap
|
||||
cubes_slug = olap-slug
|
||||
'''.format(wcs=wcs, model_dir=model_dir, dsn=postgres_db.dsn))
|
||||
|
||||
from wcs_olap import cmd
|
||||
|
|
|
@ -420,6 +420,7 @@
|
|||
],
|
||||
"label" : "olap",
|
||||
"name" : "olap",
|
||||
"slug" : "olap-slug",
|
||||
"pg_dsn" : "dbname=db660834",
|
||||
"search_path" : [
|
||||
"olap",
|
||||
|
|
|
@ -105,11 +105,13 @@ class WcsOlapFeeder(object):
|
|||
self.config = config or {}
|
||||
self.model = {
|
||||
'label': self.config.get('cubes_label', schema),
|
||||
'name': self.config.get('cubes_slug', schema),
|
||||
'name': schema,
|
||||
'search_path': [schema, 'public'],
|
||||
'pg_dsn': pg_dsn,
|
||||
'cubes': [],
|
||||
}
|
||||
if 'cubes_slug' in self.config:
|
||||
self.model['slug'] = self.config['cubes_slug']
|
||||
cube = {
|
||||
'name': 'all_formdata',
|
||||
'label': 'Tous les formulaires',
|
||||
|
|
Loading…
Reference in New Issue