Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Private Attributes
PloneLanguageTool.LanguageTool.PrefsForPTS Class Reference

List of all members.

Public Member Functions

def __init__
def getPreferredLanguages

Public Attributes


Private Attributes


Detailed Description

A preference to hook into PTS.

Definition at line 571 of file

Constructor & Destructor Documentation

Definition at line 573 of file

00574     def __init__(self, context):
00575         self._env = context
00576         self.languages = []
00577         binding = context.get('LANGUAGE_TOOL')
00578         if not isinstance(binding, LanguageBinding):
00579             return None
00580         self.pref = binding.getLanguageBindings()
00581         self.languages = [self.pref[0]] + self.pref[2] + [self.pref[1]]
00582         return None

Member Function Documentation

Returns the list of the bound languages.

Definition at line 583 of file

00584     def getPreferredLanguages(self):
00585         """Returns the list of the bound languages."""
00586         return self.languages

Here is the call graph for this function:

Member Data Documentation

Definition at line 574 of file

Definition at line 575 of file

Definition at line 579 of file

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