2026-06-02 00:47:03 -04:00
|
|
|
import json
|
|
|
|
|
import sanitize
|
2026-06-07 00:21:08 -04:00
|
|
|
import config_utils
|
2026-06-02 00:47:03 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def collect_tokens(cfg):
|
2026-06-07 00:21:08 -04:00
|
|
|
tokens = config_utils.collect_layout_tokens(cfg)
|
2026-06-02 00:47:03 -04:00
|
|
|
blank = [{'value': '', 'label': '-- Select timezone --'}]
|
2026-06-02 12:49:39 -04:00
|
|
|
tokens['TIMEZONE_OPTIONS'] = json.dumps(blank + [{'value': tz, 'label': tz} for tz in sanitize.VALID_TIMEZONES])
|
|
|
|
|
return tokens
|