Back to index

plone3  3.1.7
interfaces.py
Go to the documentation of this file.
00001 from zope.interface import Interface
00002 from zope.i18n.interfaces import ILanguageAvailability as \
00003     IBaseLanguageAvailability
00004 
00005 class ICcTLDInformation(Interface):
00006     """A list of country code top level domains their relevant languages."""
00007 
00008     def getAvailableTLDs():
00009         """Return a sequence of country code top level domains.
00010         """
00011 
00012     def getTLDs():
00013         """Return a sequence of ccTLDs and their languages.
00014         """
00015 
00016     def getLanguagesForTLD(tld):
00017         """Return the relevant languages for a top level domain.
00018         """
00019 
00020 class ICountryAvailability(Interface):
00021     """A list of available coutries."""
00022 
00023     def getAvailableCountries():
00024         """Return a sequence of country tags for available countries.
00025         """
00026 
00027     def getCountries():
00028         """Return a sequence of Country objects for available countries.
00029         """
00030 
00031     def getCountryListing():
00032         """Return a sequence of country code and country name tuples.
00033         """
00034 
00035 class ILanguageAvailability(IBaseLanguageAvailability):
00036     """A list of available languages."""
00037 
00038     def getLanguages(combined=False):
00039         """Return a sequence of Language objects for available languages.
00040         """
00041 
00042     def getLanguageListing(combined=False):
00043         """Return a sequence of language code and language name tuples.
00044         """
00045 
00046 class IContentLanguageAvailability(ILanguageAvailability):
00047     """A list of available content languages."""
00048 
00049 class IMetadataLanguageAvailability(ILanguageAvailability):
00050     """A list of available metadata languages."""
00051 
00052 class IModifiableLanguageAvailability(ILanguageAvailability):
00053     """A modifiable list of available languages."""
00054 
00055     def setAvailableLanguages(languages, combined=False):
00056         """Set a list of available language tags.
00057         """
00058 
00059 class IModifiableCountryAvailability(ICountryAvailability):
00060     """A modifiable list of available countries."""
00061 
00062     def setAvailableCountries(countries):
00063         """Set a list of available country tags.
00064         """