cms.data package¶
Submodules¶
cms.data.browsers module¶
cms.data.countries module¶
-
class
cms.data.countries.Countries¶ Bases:
objectAn object containing a list of ISO3166-1 countries.
Iterating this object will return the countries as tuples (of the country code and name), sorted by name.
-
countries¶ Return the a dictionary of countries, modified by any overriding settings.
The result is cached so future lookups are less work intensive.
-
name(code)¶ Return the name of a country, based on the code.
If no match is found, returns an empty string.
-