Message7149
In hg 6353:9d209d2b34ae the value of the config
main.indexer_language setting is validated in
indexer_xapian.py.
A bad language setting results in an error when loading any web
page (and probably a failure from the email gateway).
It should probably be validated in configuration.py.
To do this, we need:
1) determine if the xapian indexer is being used.
2) determine if the language is valid by calling:
xapian.Stem(language). A xapian.InvalidArgumentError
indicates a bad language.
3) report to the user the error and the list of good languages.
See current implementation in backends/indexer_xapian.py.
1 is tricky. If [main] indexer is unset or set to xapian, we need
to test the config value. But there is no guarantee that
the [main] indexer definition will be available when we need to
validate the indexer_language. |
|
Date |
User |
Action |
Args |
2021-03-29 03:53:10 | rouilj | set | recipients:
+ rouilj |
2021-03-29 03:53:10 | rouilj | set | messageid: <1616989990.73.0.392959155933.issue2551123@roundup.psfhosted.org> |
2021-03-29 03:53:10 | rouilj | link | issue2551123 messages |
2021-03-29 03:53:10 | rouilj | create | |
|