Back to index

plone3  3.1.7
Public Member Functions
plone.i18n.locales.cctld.CcTLDInformation Class Reference

List of all members.

Public Member Functions

def getAvailableTLDs
def getTLDs
def getLanguagesForTLD

Detailed Description

A list of country code top level domains their relevant languages.

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

  >>> from zope.interface.verify import verifyClass
  >>> verifyClass(ICcTLDInformation, CcTLDInformation)
  True

Definition at line 11 of file cctld.py.


Member Function Documentation

Return a sequence of country code top level domains.

Definition at line 23 of file cctld.py.

00023 
00024     def getAvailableTLDs(self):
00025         """Return a sequence of country code top level domains.
00026         """
00027         return _tld_to_language.keys()

Return the relevant languages for a top level domain.

Definition at line 33 of file cctld.py.

00033 
00034     def getLanguagesForTLD(self, tld):
00035         """Return the relevant languages for a top level domain.
00036         """
00037         return _tld_to_language[tld]

Return a sequence of ccTLDs and their languages.

Definition at line 28 of file cctld.py.

00028 
00029     def getTLDs(self):
00030         """Return a sequence of ccTLDs and their languages.
00031         """
00032         return _tld_to_language.copy()


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