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/path.pyo
mō
83Dc@s#dZdZdfd„ƒYZdS(s-
Author: David Malcolm <dmalcolm@redhat.com>
s#David Malcolm <dmalcolm@redhat.com>t
SearchPathcBshtZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„ZRS(s”
    Class used by the recording framework (and for more verbose script
    logging) for identifying nodes in a persistent way, independent of the
    style of script being written.

    Implemented as a list of (predicate, isRecursive) pairs, giving the
    'best' way to find the Accessible wrapped by a Node, starting at the
    root and applying each search in turn.

    This is somewhat analagous to an absolute path in a filesystem, except
    that some of searches may be recursive, rather than just searching
    direct children.

    FIXME: try to ensure uniqueness
    FIXME: need some heuristics to get 'good' searches, whatever
    that means
    cCs
g|_dS(N(tselft_SearchPath__list(R((t0/usr/lib/python2.4/site-packages/dogtail/path.pyt__init__scCsBd}x1|iD]&\}}|d|iƒ|f7}qW|dS(Nt{s/(%s,%s)t}(tresultRRt	predicatetisRecursivetdescribeSearchResult(RRRR	((Rt__str__s

cCsnt|iƒt|iƒjotSnDx@tt|iƒƒD])}|i||i|jotSq=q=WtS(N(tlenRRtothertFalsetrangetitTrue(RR
R((Rt__eq__$scCs|ii||fƒdS(N(RRtappendRR	(RRR	((RR1scCs
t|iƒS(N(titerRR(R((Rt__iter__5scCs
t|iƒS(N(RRR(R((Rtlength8scCs;d}x.|iD]#\}}|d|i|ƒ7}qW|S(sy
        Used by the recording system.

        Generate the Python source code that will carry out this search.
        tt.N(RRRRR	tmakeScriptMethodCall(RRRR	((RR;s
cCsģx=tt|iƒƒD]&}|i||i|joPqqW|djo^tƒ}|i|d|_to2dGHd|GHd|GHd|GHd|GHdGHn|SndSdS(	sų
        Given another SearchPath instance, if the other is 'below' this
        one, return a SearchPath that describes how to reach it relative
        to this one (a copy of the second part of the list).    Otherwise
        return None.
        iis....................sfrom %ssto %ssi=%ssrelative path %sN(
RRRRRR
RRRtNone(RR
RR((RtgetRelativePathHs"	
						cCs;tƒ}x+t|ƒD]}|ii|i|ƒqW|S(sO
        Get the first n components of this instance as a new instance
        N(RRRtnRRRR(RRRR((Rt	getPrefixcs	
cCs|i|\}}|S(N(RRRRR	(RRRR	((RtgetPredicatels(
t__name__t
__module__t__doc__RRRRRRRRRR(((RRs			
				
			N(R!t
__author__R(RR"((Rt?s

Anon7 - 2021