Logo Search packages:      
Sourcecode: language-selector version File versions  Download package

def LanguageSelector::FontConfig::FontConfigHack::setConfig (   self,
  locale 
)

set the configuration for 'locale'. if locale can't be
    found a NoConfigurationForLocale exception it thrown

Definition at line 61 of file FontConfig.py.

00061                                :
        """ set the configuration for 'locale'. if locale can't be
            found a NoConfigurationForLocale exception it thrown
        """
        # check if we have a config
        if locale not in self.getAvailableConfigs():
            raise ExceptionNoConfigForLocale()
        # do sanity checking (is it really a symlink?)
        if os.path.exists(self.configFile) and not os.path.islink(self.configFile):
            raise ExceptionNotSymlink()
        # remove existing symlink
        if os.path.exists(self.configFile):
            os.unlink(self.configFile)
        # do the actual symlink
        os.symlink(os.path.normpath("%s/%s"% (self.datadir, locale)),
                   self.configFile)
        
    def setConfigBasedOnLocale(self):


Generated by  Doxygen 1.6.0   Back to index