def initialize_name_registry(): registry = ObjectRegistry('Calendar') for calendar in ISO_3166_CALENDARS.values(): registry.register(calendar.name, calendar) return registry
def initialize_code_registry(): registry = ObjectRegistry('Calendar') for code, calendar in ISO_3166_CALENDARS.items(): registry.register(code, calendar) return registry
def initialize_name_registry(): registry = ObjectRegistry('Calendar') for calendar in ISO_3166_CALENDARS.values(): registry.register(calendar.name, calendar) return registry
def initialize_code_registry(): registry = ObjectRegistry('Calendar') for code, calendar in ISO_3166_CALENDARS.items(): registry.register(code, calendar) return registry
def initialize_currency_registry(): registry = ObjectRegistry('Currency') for currency_cls in REGISTERED_CURRENCY: currency = currency_cls() registry.register(currency.code, currency) return registry
def initialize_currency_registry(): registry = ObjectRegistry('Currency') for currency_cls in REGISTERED_CURRENCY: currency = currency_cls() registry.register(currency.code, currency) return registry