l.s.w.i.w.ICountrySet(Interface) : interface documentation

Part of lp.services.worlddata.interfaces.webservice View In Hierarchy

A container for countries.
Method __getitem__ Get a country.
Method __iter__ Iterate through the countries in this set.
Method getByName Return a country by its name.
Method getByCode Return a country by its code.
Method getCountries Return a collection of countries.
def __getitem__(key):
Get a country.
def __iter__():
Iterate through the countries in this set.
@operation_parameters(TextLine(_('Name'), True))
@operation_returns_entry(ICountry)
@export_read_operation()
def getByName(name):
Return a country by its name.
@operation_parameters(TextLine(_('Code'), True))
@operation_returns_entry(ICountry)
@export_read_operation()
def getByCode(code):
Return a country by its code.
@collection_default_content()
def getCountries():
Return a collection of countries.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.