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]), }