403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/LanguageSelector/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/LanguageSelector/FontConfig.pyc
ó
S¯/Oc@szddlZddlZddlmZddlZddlmZdefd„ƒYZdefd„ƒYZ	defd	„ƒYZ
d
efd„ƒYZe
dkrveƒZd
GejƒGHyejƒZWne	k
rèdGHnXdGejdƒGHdGejƒGHydGejƒGHWne
k
r5dGHnXdGHejƒyejƒZdGHWqve	k
rrdGHqvXndS(iÿÿÿÿN(t
LocaleInfo(tlanguage2localetExceptionMultipleConfigurationscBseZdZRS(s- error when multiple languages are symlinked (t__name__t
__module__t__doc__(((s?/usr/lib/python2.7/dist-packages/LanguageSelector/FontConfig.pyRstExceptionUnconfiguredcBseZdZRS(s" error if no configuration is set (RRR(((s?/usr/lib/python2.7/dist-packages/LanguageSelector/FontConfig.pyRstExceptionNoConfigForLocalecBseZdZRS(s2 error if there is no config for the given locale (RRR(((s?/usr/lib/python2.7/dist-packages/LanguageSelector/FontConfig.pyRstFontConfigHackcBsSeZdZddd„Zd„Zd„Zd„Zd„Zd„Zd	„Z	RS(
s abstract the fontconfig hack s/usr/share/language-selector/s
/etc/fontscCs5d||_||_||_td|ƒ|_dS(Ns
%s/fontconfigtlanguagelist(tdatadirt_datadirt
globalConfDirRtli(tselfR
R((s?/usr/lib/python2.7/dist-packages/LanguageSelector/FontConfig.pyt__init__ s
		cCsQtjjtjj|ƒƒd}|jddƒ\}}}d||jƒfS(sÞ 
        internal helper to extracr from our fontconfig filenames
        of the form 69-language-selector-zh-tw.conf the locale
        and country

        returns string of the form locale_COUTNRY (e.g. zh_TW)
        it-is%s_%s(tostpathtsplitexttbasenametrsplittupper(Rtnametfnametheadtlltcc((s?/usr/lib/python2.7/dist-packages/LanguageSelector/FontConfig.pyt_getLocaleCountryFromFileName's"cCsGg}d|j}x-tj|ƒD]}|j|j|ƒƒq#W|S(sq get the configurations we have as a list of languages
            (returns a list of ['zh_CN','zh_TW'])
        s$%s/conf.avail/69-language-selector-*(RtglobtappendR(RtrestpatternR((s?/usr/lib/python2.7/dist-packages/LanguageSelector/FontConfig.pytgetAvailableConfigs2s

cCsid|j}tj|ƒ}t|ƒdkr:tƒ‚nt|ƒdkrXtƒ‚n|j|dƒS(s returns the current language configuration as a string (e.g. zh_CN)
        
            if the configfile is not a symlink it raises a
             ExceptionNotSymlink exception
            if the file dosn't exists raise a
             ExceptionUnconfigured exception
        s %s/conf.d/69-language-selector-*ii(RRtlenRRR(RR tcurrent_config((s?/usr/lib/python2.7/dist-packages/LanguageSelector/FontConfig.pytgetCurrentConfig;s
cCsMd|j}x9tj|ƒD](}tjj|ƒrtj|ƒqqWdS(se removes the current fontconfig-voodoo configuration
            and do some sanity checking
        s%s/conf.d/*-language-selector-*N(RRRRtexiststunlink(RR tf((s?/usr/lib/python2.7/dist-packages/LanguageSelector/FontConfig.pytremoveConfigKs
c	Cstj|j|ƒ}|d}||jƒkr=tƒ‚n|jƒd|j}xµd|d|djƒfd|dgD]‡}x~tjt	j
j||ƒƒD]^}t	j
j|ƒ}t	j
j|jd|ƒ}t	j
j|jd|ƒ}t	j
||ƒq¦WqWtS(	s set the configuration for 'locale'. if locale can't be
            found a NoConfigurationForLocale exception it thrown
        tLOCALEs%s/conf.avail/s*-language-selector-%s-%s.conftLCODEtCCODEs*-language-selector-%s.confs
conf.availsconf.d(tmacrostLangpackMacrosRR!RR(RtlowerRRRtjoinRtsymlinktTrue(	RtlocaletmacrtbasedirR R'Rt	from_linktto_link((s?/usr/lib/python2.7/dist-packages/LanguageSelector/FontConfig.pyt	setConfigTs


%cCsX|jjƒd}t|ƒdkr;|jjƒd}nt|ƒ}|j|ƒdS(sÀ set the configuration based on the locale in LocaleInfo. If
            no configuration is found the fontconfig config is set to
            'none'
            Can throw a exception
        iiN(R
tgetUserDefaultLanguageR"tgetSystemDefaultLanguageRR7(RtlangR2((s?/usr/lib/python2.7/dist-packages/LanguageSelector/FontConfig.pytsetConfigBasedOnLocaleks
(
RRRRRR!R$R(R7R;(((s?/usr/lib/python2.7/dist-packages/LanguageSelector/FontConfig.pyRs							t__main__savailable: tunconfiguredsset config: tzh_CNs	current: srun auto mode: sno config for this localesremoveConfig()s/ERROR: have config after calling removeConfig()sunconfigured (as expected)(Rtos.pathRRR,tutilsRt	ExceptionRRRtobjectRRtfcR!R$tconfigR7R;R((((s?/usr/lib/python2.7/dist-packages/LanguageSelector/FontConfig.pyt<module>
s8Z	
	
	
	


Youez - 2016 - github.com/yon3zu
LinuXploit