linuxrouter/docker/routlin-dash/app/pages/accountcreate/view.py

11 lines
325 B
Python
Raw Permalink Normal View History

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-10 20:00:35 -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