ó Aìm>c@sddZdZdZdZdZZeeZddlmZddlm Z ej ej ej ej ejejejgZiZde fd „ƒYZd e fd „ƒYZdd lmZdd lZd d d„Zd„Zd„Zd„ZddlmZdd lZydd l Z Wn'e!k rIddl"m#Z#e#Z$nXe Z$d„Z%e%ƒd S(sÐ WWW: http://4suite.org/4XPath 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's(http://xmlns.4suite.org/xpath/extensionsshttp://xmlns.4suite.org/extgœuˆ<ä7~iÿÿÿÿ(tNode(t FtExceptiontCompiletimeExceptioncBs#eZdZdZdZd„ZRS(iiicGstj||tj|ƒdS(N(Rt__init__t MessageSourcet COMPILETIME(tselft errorCodetargs((sD/opt/freeware/lib/python2.7/site-packages/_xmlplus/xpath/__init__.pyR*s(t__name__t __module__tINTERNALtSYNTAXt PROCESSINGR(((sD/opt/freeware/lib/python2.7/site-packages/_xmlplus/xpath/__init__.pyR%stRuntimeExceptioncBs/eZdZdZdZdZdZd„ZRS(ii idieiÈcGstj||tj|ƒdS(N(RRRtRUNTIME(RRR((sD/opt/freeware/lib/python2.7/site-packages/_xmlplus/xpath/__init__.pyR4s(R R R t NO_CONTEXTtUNDEFINED_VARIABLEtUNDEFINED_PREFIXtWRONG_ARGUMENTSR(((sD/opt/freeware/lib/python2.7/site-packages/_xmlplus/xpath/__init__.pyR-s (tSyntaxExceptionNcCs™ddl}|jjdƒr;t|jdjdƒƒn|rJ|}n-|rhtj|ddƒ}nttjƒ‚tj ƒj |ƒj |ƒ}|S(Niÿÿÿÿt EXTMODULESt:i( tostenvironthas_keytRegisterExtensionModulestsplittContextRtNO_CONTEXT_ERRORtparsertnewtparsetevaluate(texprt contextNodetcontextRtcontretval((sD/opt/freeware/lib/python2.7/site-packages/_xmlplus/xpath/__init__.pytEvaluate;s  cCs›ytjƒj|ƒSWn}tk rD}ttjt|ƒƒ‚nSddl}ddl}|j ƒ}|j d|ƒt t j |jƒƒ‚nXdS(Niÿÿÿÿ(RRR t SyntaxErrorRR tstrt tracebackt cStringIOtStringIOt print_exctNoneRR tgetvalue(R"terrorR*R+tstream((sD/opt/freeware/lib/python2.7/site-packages/_xmlplus/xpath/__init__.pytCompileJs cCstj|ddƒS(Ni(R(R#((sD/opt/freeware/lib/python2.7/site-packages/_xmlplus/xpath/__init__.pyt CreateContextVscCsr|}g}x^|D]V}|rt|iidgƒ}t|dƒrjtj|jƒ|j|ƒqjqqW|S(Nt ExtFunctions(t __import__thasattrtg_extFunctionstupdateR4tappend(t moduleNamest mod_namestmodstmod_nametmod((sD/opt/freeware/lib/python2.7/site-packages/_xmlplus/xpath/__init__.pyRZs (t NormalizeNode(tExprParserFactorycCs$ddlm}tj|jƒdS(Niÿÿÿÿ(tBuiltInExtFunctions(t xml.xpathRAR7R8R4(RA((sD/opt/freeware/lib/python2.7/site-packages/_xmlplus/xpath/__init__.pytInitvsgð(&t__doc__tNAMESPACE_NODEtFT_OLD_EXT_NAMESPACEtFT_EXT_NAMESPACEtInftNaNtxml.domRt xml.FtCoreRt ELEMENT_NODEtATTRIBUTE_NODEt TEXT_NODEtCDATA_SECTION_NODEt DOCUMENT_NODEtPROCESSING_INSTRUCTION_NODEt COMMENT_NODEtg_xpathRecognizedNodesR7RRtXPathParserBaseRRR.R'R2R3RtUtilR?Rt XPathParserct ImportErrortpyxpathR@RRC(((sD/opt/freeware/lib/python2.7/site-packages/_xmlplus/xpath/__init__.pyt sB