ó \STc@sidZddlmZddlmZddlmZddlmZddlZdd d„ƒYZdS( s A parsed token that represents a abbreviated relative location path. WWW: http://4suite.org/XPATH e-mail: support@4suite.org Copyright (c) 2000-2001 Fourthought Inc, USA. All Rights Reserved. See http://4suite.org/COPYRIGHT for license and copyright information iÿÿÿÿ(tParsedNodeTest(tParsedPredicateList(tParsedAxisSpecifier(t ParsedStepNt%ParsedAbbreviatedRelativeLocationPathcBs>eZd„Zd„ZeZdd„Zd„Zd„ZRS(cCs^||_||_tjddƒ}tjgƒ}tjdƒ}tj|||ƒ|_dS(s] left can be a step or a relative location path right is only a step tnodetsdescendant-or-selfN(t_leftt_rightRRRRt_middle(tselftlefttrighttnttppltas_((sa/opt/freeware/lib/python2.7/site-packages/_xmlplus/xpath/ParsedAbbreviatedRelativeLocationPath.pyt__init__s   cCs g}|jj|ƒ}t|ƒ}|jƒ}xVt|ƒD]H}|j|||d|fƒ|jj|ƒ}tj||ƒ}q=W|}g}t|ƒ}xVt|ƒD]H}|j|||d|fƒ|j j|ƒ}tj||ƒ}q®W|j|ƒ|S(Ni( RtselecttlentcopyNodePosSizetrangetsetNodePosSizeR tSettUnionR(R tcontexttrestrttlt origStatetctrtsubRt((sa/opt/freeware/lib/python2.7/site-packages/_xmlplus/xpath/ParsedAbbreviatedRelativeLocationPath.pytevaluate"s"    RcCsO|t|ƒGH|jj|dƒ|jj|dƒ|jj|dƒdS(Ns (tstrRtpprintR R(R tindent((sa/opt/freeware/lib/python2.7/site-packages/_xmlplus/xpath/ParsedAbbreviatedRelativeLocationPath.pyR!;scCsdt|ƒt|ƒfS(Ns+(tidtrepr(R ((sa/opt/freeware/lib/python2.7/site-packages/_xmlplus/xpath/ParsedAbbreviatedRelativeLocationPath.pyt__str__As cCst|jƒdt|jƒS(Ns//(R$RR(R ((sa/opt/freeware/lib/python2.7/site-packages/_xmlplus/xpath/ParsedAbbreviatedRelativeLocationPath.pyt__repr__Fs(t__name__t __module__RRRR!R%R&(((sa/opt/freeware/lib/python2.7/site-packages/_xmlplus/xpath/ParsedAbbreviatedRelativeLocationPath.pyRs    ((t__doc__t xml.xpathRRRRRR(((sa/opt/freeware/lib/python2.7/site-packages/_xmlplus/xpath/ParsedAbbreviatedRelativeLocationPath.pyt s