Back to index

plone3  3.1.7
Public Member Functions
plone.i18n.locales.countries.CountryAvailability Class Reference
Inheritance diagram for plone.i18n.locales.countries.CountryAvailability:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def getAvailableCountries
def getCountries
def getCountryListing

Detailed Description

A list of available coutries.

Let's make sure that this implementation actually fulfills the API.

  >>> from zope.interface.verify import verifyClass
  >>> verifyClass(ICountryAvailability, CountryAvailability)
  True

Definition at line 6 of file countries.py.


Member Function Documentation

Return a sequence of country tags for available countries.

Reimplemented in plone.app.i18n.locales.countries.Countries.

Definition at line 17 of file countries.py.

00017 
00018     def getAvailableCountries(self):
00019         """Return a sequence of country tags for available countries.
00020         """
00021         return _countrylist.keys()

Here is the caller graph for this function:

Return a sequence of Country objects for available countries.

Definition at line 22 of file countries.py.

00022 
00023     def getCountries(self):
00024         """Return a sequence of Country objects for available countries.
00025         """
00026         return _countrylist.copy()

Return a sequence of country code and country name tuples.

Definition at line 27 of file countries.py.

00027 
00028     def getCountryListing(self):
00029         """Return a sequence of country code and country name tuples.
00030         """
00031         return [(code, _countrylist[code][u'name']) for code in _countrylist]


The documentation for this class was generated from the following file: