Mercurial > p > roundup > code
comparison roundup/configuration.py @ 6658:408fd477761f
Add i18n object to roundupdb.Database
This makes the i18n object accessible everywhere (including in detectors
where localized error messages were impossible). See issue2551184
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Tue, 03 May 2022 14:51:59 +0200 |
| parents | 0d99ae7c8de6 |
| children | ab2ed11c021e |
comparison
equal
deleted
inserted
replaced
| 6657:2453d7b58a92 | 6658:408fd477761f |
|---|---|
| 1078 """Whether to enable the XMLRPC API in the roundup web | 1078 """Whether to enable the XMLRPC API in the roundup web |
| 1079 interface. By default the XMLRPC endpoint is the string 'xmlrpc' | 1079 interface. By default the XMLRPC endpoint is the string 'xmlrpc' |
| 1080 after the roundup web url configured in the 'tracker' section. | 1080 after the roundup web url configured in the 'tracker' section. |
| 1081 If this variable is set to 'no', the xmlrpc path has no special meaning | 1081 If this variable is set to 'no', the xmlrpc path has no special meaning |
| 1082 and will yield an error message."""), | 1082 and will yield an error message."""), |
| 1083 (BooleanOption, 'translate_xmlrpc', 'no', | |
| 1084 """Whether to enable i18n for the xmlrpc endpoint. Enable it if | |
| 1085 you want to enable translation based on browsers lang (if enabled), trackers | |
| 1086 lang (if set) or environment."""), | |
| 1083 (BooleanOption, 'enable_rest', "yes", | 1087 (BooleanOption, 'enable_rest', "yes", |
| 1084 """Whether to enable the REST API in the roundup web | 1088 """Whether to enable the REST API in the roundup web |
| 1085 interface. By default the REST endpoint is the string 'rest' plus any | 1089 interface. By default the REST endpoint is the string 'rest' plus any |
| 1086 additional REST-API parameters after the roundup web url configured in | 1090 additional REST-API parameters after the roundup web url configured in |
| 1087 the tracker section. If this variable is set to 'no', the rest path has | 1091 the tracker section. If this variable is set to 'no', the rest path has |
| 1088 no special meaning and will yield an error message."""), | 1092 no special meaning and will yield an error message."""), |
| 1093 (BooleanOption, 'translate_rest', 'no', | |
| 1094 """Whether to enable i18n for the rest endpoint. Enable it if | |
| 1095 you want to enable translation based on browsers lang (if enabled), trackers | |
| 1096 lang (if set) or environment."""), | |
| 1089 (IntegerNumberGeqZeroOption, 'api_calls_per_interval', "0", | 1097 (IntegerNumberGeqZeroOption, 'api_calls_per_interval', "0", |
| 1090 "Limit API calls per api_interval_in_sec seconds to\n" | 1098 "Limit API calls per api_interval_in_sec seconds to\n" |
| 1091 "this number.\n" | 1099 "this number.\n" |
| 1092 "Determines the burst rate and the rate that new api\n" | 1100 "Determines the burst rate and the rate that new api\n" |
| 1093 "calls will be made available. If set to 360 and\n" | 1101 "calls will be made available. If set to 360 and\n" |
