403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/orca/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/orca/app_prefs.pyc
z#Jc@szdZdZdZdZdZdZddkZddkZddkZdei	fd	YZ	ddddd
ZdS(sTUtilities to manage the writing of the user application specific
preferences files.
s$Id$s
$Revision$s$Date$s-Copyright (c) 2007-2008 Sun Microsystems Inc.tLGPLiNt	OrcaPrefscBsweZdddddZdZdZdZdZdZdZ	dZ
dZd	Zd
Z
RS(cCs/tii||||||_||_dS(svCreates a new OrcaPrefs instance that will be used to write out
        application specific preferences.

        Arguments:
        - prefsDict: a dictionary where the keys are orca preferences
          names and the values are the values for the preferences.
        - appName: the application these preferences are for.
        - appScript: the application script.
        - keyBindingsTreeModel - key bindings tree model, or None if we are
          writing out console preferences.
        - pronunciationTreeModel - pronunciation dictionary tree model, or
          None if we are writing out console preferences.
        N(t
orca_prefsRt__init__tappNamet	appScript(tselft	prefsDictRRtkeyBindingsTreeModeltpronunciationTreeModel((s2/usr/lib/python2.6/site-packages/orca/app_prefs.pyR%s	cCs8|id|id|id|iddS(sZWrites the preamble to the  ~/.orca/app-settings/<APPNAME>.py
        keyBindings section.s
s%# Set up a user key-bindings profile
s#
s*def overrideAppKeyBindings(script, keyB):
N(t
writelines(Rtprefs((s2/usr/lib/python2.6/site-packages/orca/app_prefs.pyt_writeKeyBindingsPreamble;s


cCs|id|iddS(sWrites the postamble to the ~/.orca/app-settings/<APPNAME>.py
        keyBindings section.

        Arguments:
        - prefs: file handle for application preferences.
        - appName: the application these preferences are for.
        - appScript: the application script.
        s   return keyBs

N(R
(RRRR((s2/usr/lib/python2.6/site-packages/orca/app_prefs.pyt_writeAppKeyBindingsPostambleDs

cCs4|i||i|||i|||dS(scWrite to an application specific configuration file 'prefs', the
        key bindings passed in the model treeModel.

        Arguments:
        - prefs: file handle for application preferences.
        - appName: the application these preferences are for.
        - appScript: the application script.
        - treeModel: key bindings treemodel.
        N(Rt_iterateKeyBindingsR
(RRRRt	treeModel((s2/usr/lib/python2.6/site-packages/orca/app_prefs.pyt_writeAppKeyBindingsMapQs
cCsR|id|id|id|id|id|iddS(s]Writes the preamble to the  ~/.orca/app-settings/<APPNAME>.py
        pronunciations section.s
s'# User customized application specific s"pronunciation dictionary settings
s#
s import orca.pronunciation_dict

s4def overridePronunciations(script, pronunciations):
N(R
(RR((s2/usr/lib/python2.6/site-packages/orca/app_prefs.pyt_writePronunciationsPreamble`s




cCs8|id|id|id|iddS(s]Writes the postamble to the ~/.orca/app-settings/<APPNAME>.py
        pronunciations section.s    return pronunciationss

s=orca.settings.overridePronunciations = overridePronunciationss
N(R
(RR((s2/usr/lib/python2.6/site-packages/orca/app_prefs.pyt_writePronunciationsPostamblels


cCs-|idt|dt|ddS(s#Write out a single pronunciation entry to the
        ~/.orca/app-settings/<APPNAME>.py settings file.

        Arguments:
        - prefs: file handle for application specific preferences.
        - word: the actual word to be pronunced.
        - value: the replace string to use.
        s-    orca.pronunciation_dict.setPronunciation(s, s, pronunciations)
N(R
trepr(RRtwordtvalue((s2/usr/lib/python2.6/site-packages/orca/app_prefs.pyt_writePronunciationvs
cCs.|i||i|||i|dS(sWrite to configuration file 'prefs' the new application specific
        pronunciation dictionary entries passed in the model treeModel.

        Arguments:
        - prefs: file handle for application preferences.
        - treeModel: pronunciation dictionary tree model.
        N(Rt_iteratePronunciationsR(RRR((s2/usr/lib/python2.6/site-packages/orca/app_prefs.pyt_writePronunciationMaps	
cCs|id|id||id|id|id||id|id|id|id	d
S(sWrites the preamble to the ~/.orca/app-settings/<APPNAME>.py file.

        Arguments:
        - prefs: file handle for application preferences.
        - appName: the application name.
        s# -*- coding: utf-8 -*-
s+# %s.py - custom Orca application settings
s/# Generated by orca.  DO NOT EDIT THIS FILE!!!
s5# If you want permanent customizations that will not
s-# be overwritten, edit %s-customizations.py.
s#
simport orca.settings
simport orca.acss
s
N(R
(RRR((s2/usr/lib/python2.6/site-packages/orca/app_prefs.pyt_writeAppPreferencesPreambles




cCs<|id|id||id|iddS(sWrites the postamble to the ~/.orca/app-settings/<APPNAME>.py file.

        Arguments:
        - prefs: file handle for application preferences.
        - appName: the application name.
        s
try:
s1    __import__("app-settings.%s-customizations")
sexcept ImportError:
s	    pass
N(R
(RRR((s2/usr/lib/python2.6/site-packages/orca/app_prefs.pyt_writeAppPreferencesPostambles


c	CsT|iti}ti}tii|d}d|i}t	tii||d}|i
||ix`tiD]U}|i|i
|}|i||}||jo|id||fq|q|W|io#|i||i|i|in|io|i||in|ii||i||i|itS(sCreates the directory and files to hold application specific
        user preferences.  Write out any preferences that are different
        from the generic Orca preferences for this user. Note that callers
        of this method may want to consider using an ordered dictionary so
        that the keys are output in a deterministic order.

        Returns True if the user needs to log out for accessibility
        settings to take effect.
        sapp-settingss%s.pytwsorca.settings.%s = %s
(t_setupPreferencesDirsRtreadPreferencestsettingstuserPrefsDirtostpathtjoinRtopenRtuserCustomizableSettingst_getValueForKeyRR
RRRR	RtsetAppPreferencesRtclosetFalse(	RtoldPrefsDicttorcaDirtorcaSettingsDirtappFileNameRtkeyRtoldValue((s2/usr/lib/python2.6/site-packages/orca/app_prefs.pytwritePreferencess,
	





N(t__name__t
__module__tNoneRRR
RRRRRRRR/(((s2/usr/lib/python2.6/site-packages/orca/app_prefs.pyR#s			
			
	
	
		cCs"t|||||}|iS(sCreates the directory and files to hold application specific
    user preferences.  Write out any preferences that are different
    from the generic Orca preferences for this user. Note that callers
    of this method may want to consider using an ordered dictionary so
    that the keys are output in a deterministic order.

    Arguments:
    - prefsDict: a dictionary where the keys are orca preferences
    names and the values are the values for the preferences.
    - appName: the application these preferences are for.
    - appScript: the application script.
    - keyBindingsTreeModel - key bindings tree model, or None if we are
    writing out console preferences.
    - pronunciationTreeModel - pronunciation dictionary tree model, or
    None if we are writing out console preferences.

    Returns True if the user needs to log out for accessibility settings
    to take effect.
    (RR/(RRRRR	t	orcaPrefs((s2/usr/lib/python2.6/site-packages/orca/app_prefs.pyR/s(t__doc__t__id__t__version__t__date__t
__copyright__t__license__R RRRR2R/(((s2/usr/lib/python2.6/site-packages/orca/app_prefs.pyt<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit