KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21573/root/usr/lib/python2.4/site-packages/dogtail/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21573/root/usr/lib/python2.4/site-packages/dogtail/config.pyo
mò
]¢“Mc@s’dZdZdkZdkZdkZd„Zd„Zdefd„ƒYZeƒZ	e
djo)eZd„Z
eZx;e	iiƒD]*Zeoee	eƒe	iejZqŠWe
ed	ƒeZe	ie	id
jZee	_ep
e	iejZee	_ep
e	iejZe
edƒeZeiie	idƒZepeiie	id
ƒZepeiie	idƒZe
edƒeZde	_eiidƒZde	_epeiidƒZde	_epeiidƒZe
edƒeZee	_dkZy'eeiieiƒo
eZnWne j
onXe
edƒeoei!dƒqŽndS(s
The configuration module.
sCZack Cerza <zcerza@redhat.com>, David Malcolm <dmalcolm@redhat.com>NcCs#tiitidƒiddƒS(Nis.pyt(tostpathtbasenametsystargvtreplace(((t2/usr/lib/python2.4/site-packages/dogtail/config.pyt_scriptName
scCstiƒiƒS(N(tlocaletgetpreferredencodingtlower(((Rt	_encoding
st_ConfigcBsmtZdZeeƒZeeƒZhdd<dd<dd<deƒ<deƒ<d	e<d
e<dd<d
d<dd<dd<dd<dd<dd<dd<dd<de	<de	<de	<de	<de	<d e	<d!e	<d"e	<d#e	<d$e
<ZhZd%Z
d&„Zd'„Zd(„Zed)„ZeeƒZd*„Zd+„ZRS(,s:
    Contains configuration parameters for the dogtail run.

    scratchDir(str):
    Directory where things like screenshots are stored.

    dataDir(str):
    Directory where related data files are located.

    logDir(str):
    Directory where dogtail.tc.TC*-generated logs are stored.

    scriptName(str) [Read-Only]:
    The name of the script being run.
    
    encoding(str)
    The encoding for text, used by dogtail.tc.TCString .

    actionDelay(float):
    The delay after an action is executed.

    typingDelay(float):
    The delay after a character is typed on the keyboard.

    runInterval(float):
    The interval at which dogtail.utils.run() and dogtail.procedural.run() 
    check to see if the application has started up.

    runTimeout(int):
    The timeout after which dogtail.utils.run() and dogtail.procedural.run()
    give up on looking for the newly-started application.
    
    searchBackoffDuration (float):
    Time in seconds for which to delay when a search fails.

    searchWarningThreshold (int):
    Number of retries before logging the individual attempts at a search.

    searchCutoffCount (int):
    Number of times to retry when a search fails.

    defaultDelay (float):
    Default time in seconds to sleep when delaying.

    childrenLimit (int):
    When there are a very large number of children of a node, only return
    this many, starting with the first.

    debugSearching (boolean):
    Whether to write info on search backoff and retry to the debug log.

    debugSleep (boolean):
    Whether to log whenever we sleep to the debug log.

    debugSearchPaths (boolean):
    Whether we should write out debug info when running the SearchPath
    routines.

    absoluteNodePaths (boolean):
    Whether we should identify nodes in the logs with long 'abcolute paths', or
    merely with a short 'relative path'. FIXME: give examples

    ensureSensitivity (boolean):
    Should we check that ui nodes are sensitive (not 'greyed out') before
    performing actions on them? If this is True (the default) it will raise
    an exception if this happens. Can set to False as a workaround for apps
    and toolkits that don't report sensitivity properly.

    debugTranslation (boolean):
    Whether we should write out debug information from the translation/i18n
    subsystem.

    blinkOnActions (boolean):
    Whether we should blink a rectangle around a Node when an action is
    performed on it.

    fatalErrors (boolean):
    Whether errors encountered in dogtail.procedural should be considered
    fatal. If True, exceptions will be raised. If False, warnings will be 
    passed to the debug logger.

    useIconLogger (boolean):
    Whether we should place an icon in the notification area and print debug
    messages to it.

    logDebugToFile (boolean):
    Whether to write debug output to a log file.
    t
scratchDirs
/tmp/dogtail/tdataDirs/tmp/dogtail/data/tlogDirs/tmp/dogtail/logs/t
scriptNametencodingt
configFiletbaseFiletactionDelayf1.0ttypingDelayf0.074999999999999997trunIntervalf0.5t
runTimeoutitsearchBackoffDurationtsearchWarningThresholditsearchCutoffCountitdefaultDelayt
childrenLimitidtdebugSearchingt
debugSleeptdebugSearchPathstabsoluteNodePathstensureSensitivitytdebugTranslationtblinkOnActionstfatalErrorst
useIconLoggertlogDebugToFilet__INVALID__cCs[tƒ}tƒ}titiddƒtitiddƒtitiddƒdS(NRiÿRR(RRRRR
t_Config__createDirtdefaults(tselfRR((Rt__init__”s
		cCstii|ƒpt|d‚nîti||jptii|ti	ƒ|joºd|jo0ti
|ƒ|ddjo|d}qnm|djo_dk}|tjo|i
ƒ|i_q|tjo|i`d|i_qt|‚n|ti|<ndS(Ns is not a valid option.tDiriÿÿÿÿt/R&(tconfigR*thas_keytnametAttributeErrorR
tvaluetoptionstgettinvalidValueR)tloggingtTruet
IconLoggertLoggert
iconLoggertFalsetNonet
ValueError(R+R1R3R7((Rt__setattr__›s 3


	

	
cCs[yti|SWnEtj
o9yti|SWqWtj
ot|d‚qWXnXdS(Ns is not a valid option.(R
R4R1tKeyErrorR*R2(R+R1((Rt__getattr__®scCstii|ƒ}tii|ƒpÜtiitiiitii|tiiƒditiiƒdd!ƒ}tii|ƒpEt	i
||ƒd|GHti|ƒ|oti
||ƒqýqd|GHti|ƒ|oti
||ƒqndS(s¬
        Creates a directory (if it doesn't currently exist), creating any parent directories it needs.

        If perms is None, create with default permissions.
        iiiÿÿÿÿsCreating %s ...N(RRtabspathtdirNametisdirtseptjointsplitt
parentDirNameR
R)tpermstmkdirtchmod(tclsRCRIRH((Rt__createDir´sO	
	
cCstii|ƒdS(se
        Loads values from dict, preserving any options already set that are not overridden.
        N(R
R4tupdatetdict(R+RO((RtloadÏscCs
ht_dS(s8
        Resets all settings to their defaults.
        N(R
R4(R+((RtresetÕs(t__name__t
__module__t__doc__tstaticmethodRt_Config__scriptNameRt_Config__encodingR=R<R8R*R4R6R,R?RAR)tclassmethodRPRQ(((RR
sXö$				t__main__cCs'|ot}d|GHn
d|GHdS(NsFAILED: sPASSED: (tfailureR8t	anyFailedtdescription(RZR\R[((Rt
failOrPassàs
sReading all default valuesR"sSetting ensureSensitivityRRRsLooking for default directoriess/tmp/dts/tmp/dt_log/s/tmp/dt_datasChanging default directoriessSetting useIconLoggeri("RTt
__author__RRR	RRtobjectR
R/RRR<R[R]R8RZR*tkeystoptiontgetattrR"RRDRRRR&R7t
isinstancetdebugLoggerR;R9R2texit(
R[RR
RaR	R/R^RRZR7RRR]((Rt?s^					Ì	
	(
		
!!
			
		


Anon7 - 2021