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
METRo projects
metro
Commits
71d2d29e
Commit
71d2d29e
authored
Feb 11, 2009
by
Miguel Tremblay
Browse files
Remove the function about the XML lib validation.
parent
5b521ca7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/frontend/toolbox/metro_config_validation.py
View file @
71d2d29e
...
...
@@ -191,22 +191,6 @@ def validate_datatype( dConf ):
validate_datatype_category
(
sConfig_item
,
iFrom
,
dExtended_data_type
,
dAll_data_type
)
# def validate_xml_lib( dConf ):
# sKey = 'INIT_XML_LIB'
# try:
# metro_util.test_import(dConf[sKey]['VALUE'])
# except "MetroImportError", sError:
# sMessage = config_error_string(sKey,
# dConf[sKey]['FROM'],
# sError)
# sMessage = sMessage + \
# _("\nYou can use one of the following shorthand " + \
# "(pyxml, libxml2)\nor a valid module name")
# metro_logger.print_init_message(metro_logger.LOGGER_INIT_ERROR,
# sMessage)
# sys.exit(3)
def
validate_execution_sequence
(
dConf
):
sKey
=
'INIT_MODULE_EXECUTION_SEQUENCE'
lExecutionSequence
=
dConf
[
sKey
][
'VALUE'
]
...
...
@@ -270,8 +254,9 @@ def validate_roadcast_start_time( dConf ):
def
validate_config
(
dConf
):
validate_xml_lib
(
dConf
)
"""
Execution of the validation of the configuration files.
"""
validate_datatype
(
dConf
)
validate_execution_sequence
(
dConf
)
validate_station_layer_default_type
(
dConf
)
...
...
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