9 lines
249 B
Python
9 lines
249 B
Python
import json
|
|
import sanitize
|
|
|
|
|
|
def collect_tokens(cfg):
|
|
blank = [{'value': '', 'label': '-- Select timezone --'}]
|
|
return {
|
|
'TIMEZONE_OPTIONS': json.dumps(blank + [{'value': tz, 'label': tz} for tz in sanitize.VALID_TIMEZONES]),
|
|
}
|