Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Validata
Validata UI
Commits
6e476a35
Commit
6e476a35
authored
Jun 21, 2019
by
Christophe Benz
Browse files
Allow loading catalog by file path also
parent
04fe515d
Pipeline
#1070
passed with stage
in 4 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
validata_ui/__init__.py
View file @
6e476a35
...
...
@@ -41,7 +41,7 @@ if config.HOMEPAGE_CONFIG:
name
=
section
[
'name'
]
log
.
info
(
'Initializing homepage section "{}"...'
.
format
(
name
))
catalog
=
section
.
get
(
'catalog'
)
if
catalog
and
isinstance
(
catalog
,
str
)
and
catalog
.
startswith
(
'http'
)
:
if
catalog
and
isinstance
(
catalog
,
str
):
schema_catalog_map
[
name
]
=
opendataschema
.
SchemaCatalog
(
catalog
,
session
=
caching_session
)
log
.
info
(
"...done"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment