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/21585/root/usr/lib64/python2.4/xml/dom/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21585/root/usr/lib64/python2.4/xml/dom/xmlbuilder.pyo
mò
‚=5Dc@sÖdZdkZdkZdkTdklZdddgZdfd„ƒYZdfd	„ƒYZ	d
„Z
defd„ƒYZdefd„ƒYZ
d
fd„ƒYZ[dfd„ƒYZdfd„ƒYZdS(s4Implementation of the DOM Level 3 'LS-Load' feature.N(t*(s
NodeFiltert
DOMBuildertDOMEntityResolvertDOMInputSourcetOptionscBs€tZdZdZeZeZeZeZ	eZ
eZeZeZ
eZeZeZeZeZeZeZeZeZeZRS(s±Features object that has variables set for each DOMBuilder feature.

    The DOMBuilder class uses an instance of this class to pass settings to
    the ExpatBuilder class.
    i(t__name__t
__module__t__doc__t
namespacestTruetnamespace_declarationstFalset
validationtexternal_parameter_entitiestexternal_general_entitiestexternal_dtd_subsettvalidate_if_schematvalidatetdatatype_normalizationtcreate_entity_ref_nodestentitiestwhitespace_in_element_contenttcdata_sectionstcommentstcharset_overrides_xml_encodingtinfosettsupported_mediatypes_onlytNoneterrorHandlertfilter(((t*/usr/lib64/python2.4/xml/dom/xmlbuilder.pyRs(c
BsqtZeZeZeZdZdZdZdZ	eeee	fZ
d„Zd„Zd„Z
d„Zd	„Zd
„Zd„Zd„Zd
„Zd„Zhddfddfg<ddfddfg<ddfddfg<ddfddfg<ddfddfg<ddfddfg<ddfddfg<ddfddfg<ddfddfg<ddfddfg<ddfddfddfg<ddfddfg<ddfddfg<ddfddfg<ddfddfg<ddfddfg<ddfddfg<ddfddfg<ddfddfg<ddfddfg<ddfg<ddfddfddfddfddfddfddfddfddfddfg	<ddfddfg<ddfddfg<ddfddfg<Zd„Zd „Zd!„Zd"„Zd#„ZRS($NiiiicCstƒ|_dS(N(Rtselft_options(R((Rt__init__;scCs|iS(N(RtentityResolver(R((Rt_get_entityResolver>scCs
||_dS(N(R"R(RR"((Rt_set_entityResolver@scCs|iS(N(RR(R((Rt_get_errorHandlerCscCs
||_dS(N(RR(RR((Rt_set_errorHandlerEscCs|iS(N(RR(R((Rt_get_filterHscCs
||_dS(N(RR(RR((Rt_set_filterJscCs¾|i|ƒoŽ|odpd}y|it|ƒ|f}Wn,tj
o ti	i
d|fƒ‚qºXxG|D]\}}t|i
||ƒqwWnti	idt|ƒƒ‚dS(Niisunsupported feature: %rsunknown feature: (RtsupportsFeaturetnametstatet	_settingst_name_xformtsettingstKeyErrortxmltdomtNotSupportedErrtvaluetsetattrR tNotFoundErrtrepr(RR*R+R.R3((Rt
setFeatureMscCst|it|ƒƒS(N(thasattrRR R-R*(RR*((RR)[scCs0t|ƒ|odpdf}|ii|ƒS(Nii(R-R*R+tkeyRR,thas_key(RR*R+R9((Rt
canSetFeature^s R
iRRR
RRRRRRRRRRRcCsÈt|ƒ}yt|i|ƒSWn¡tj
o•|djoe|i}|ioN|i	oD|i
o:|io0|ip%|i
p|ip|ip|iSntiidt|ƒƒ‚nXdS(NRsfeature %s not known(R-R*txnametgetattrRR tAttributeErrortoptionsRRRRR
RRRRR0R1R5R6(RR*R<R?((Rt
getFeature¤s
	\	cCsE|io|iid|ƒ}ntƒid|ƒ}|i|ƒS(N(RR"t
resolveEntityRturitinputRtparse(RRBRC((RtparseURI¶s
cCsyti|iƒ}|i|_|i|_|i}|djo)|i
odk}|i|i
ƒ}n|i
||ƒS(N(tcopyRR R?RRRCt
byteStreamtfpRtsystemIdturllib2turlopent_parse_bytestream(RRCRHRJR?((RRD½s		cCs0||ijotdƒ‚ntdƒ‚dS(Nsnot a legal actionsHaven't written this yet...(tactionRt_legal_actionst
ValueErrortNotImplementedError(RRCtcnodeRM((RtparseWithContextÇscCs+dk}|iii|ƒ}|i|ƒS(N(	txml.dom.expatbuilderR0R1texpatbuildertmakeBuilderR?tbuildert	parseFiletstream(RRXR?R0RV((RRLÌs	(RRRR"RRtACTION_REPLACEtACTION_APPEND_AS_CHILDRENtACTION_INSERT_AFTERtACTION_INSERT_BEFORERNR!R#R$R%R&R'R(R7R)R;R,R@RERDRRRL(((RR.s4											ÿÿ¨=			
	cCs|iƒiddƒS(Nt-t_(R*tlowertreplace(R*((RR-ÒscBs2tZdZd„Zd„Zd„Zd„ZRS(Nt_openerc
CsÛtƒ}||_||_|iƒi|ƒ|_|i|ƒ|_	dk
}dk}|i|ƒ}	|	\}}}}
}}|oR|idƒoA|i|ƒd}||||
||f}	|i|	ƒ|_n|S(Nt/(RtsourcetpublicIdRIRt_get_openertopenRGt_guess_media_encodingtencodingt	posixpathturlparsetpartstschemetnetloctpathtparamstquerytfragmenttendswithtdirnamet
urlunparsetbaseURI(
RRdRIRiRqRmRpRjRcRkRoRnRl((RRAÙs			cCs;y|iSWn)tj
o|iƒ|_|iSnXdS(N(RRaR>t_create_opener(R((RReïs
cCsdk}|iƒS(N(RJtbuild_opener(RRJ((RRvös	cCsl|iiƒ}|idƒoIxF|iƒD]4}|idƒo|iddƒdiƒSq,q,WndS(NsContent-Typescharset=t=i(	RcRGtinfoR:tgetplisttparamt
startswithtsplitR_(RRcRyR{((RRgús
(s_opener(RRt	__slots__RAReRvRg(((RRÖs
			cBs•tZdZd„Zd	„Zd
„Zd„Zd„Zd
„Zd„Z	d„Z
d„Zd„Zd„Z
d„Zd„Zd„Zd„ZRS(NRGtcharacterStreamt
stringDataRhRdRIRucCsCd|_d|_d|_d|_d|_d|_d|_dS(N(	RRRGRR€RhRdRIRu(R((RR!s						cCs|iS(N(RRG(R((Rt_get_byteStreamscCs
||_dS(N(RGR(RRG((Rt_set_byteStreamscCs|iS(N(RR(R((Rt_get_characterStreamscCs
||_dS(N(RR(RR((Rt_set_characterStreamscCs|iS(N(RR€(R((Rt_get_stringDatascCs
||_dS(N(tdataRR€(RR†((Rt_set_stringDatascCs|iS(N(RRh(R((Rt
_get_encodingscCs
||_dS(N(RhR(RRh((Rt
_set_encoding scCs|iS(N(RRd(R((Rt
_get_publicId#scCs
||_dS(N(RdR(RRd((Rt
_set_publicId%scCs|iS(N(RRI(R((Rt
_get_systemId(scCs
||_dS(N(RIR(RRI((Rt
_set_systemId*scCs|iS(N(RRu(R((Rt_get_baseURI-scCs
||_dS(N(RBRRu(RRB((Rt_set_baseURI/s(s
byteStreamscharacterStreams
stringDatasencodingspublicIdssystemIdsbaseURI(RRR~R!RR‚RƒR„R…R‡RˆR‰RŠR‹RŒRRŽR(((RRs 															tDOMBuilderFiltercBsJtZdZdZdZdZdZeiZ	d„Z
d„Zd„ZRS(sSElement filter which can be used to tailor construction of
    a DOM instance.
    iiiicCs|iS(N(Rt
whatToShow(R((Rt_get_whatToShowDscCs|iS(N(Rt
FILTER_ACCEPT(Rtelement((Rt
acceptNodeGscCs|iS(N(RR“(RR”((RtstartContainerJs(
RRRR“t
FILTER_REJECTtFILTER_SKIPtFILTER_INTERRUPTt
NodeFiltertSHOW_ALLR‘R’R•R–(((RR3s			t
DocumentLScBsJtZdZeZd„Zd„Zd„Zd„Zd„Z	d„Z
RS(s=Mixin to create documents that conform to the load/save spec.cCstS(N(R(R((Rt
_get_asyncUscCs!|otiidƒ‚ndS(Ns.asynchronous document loading is not supported(tasyncR0R1R2(RRž((Rt
_set_asyncWscCstdƒ‚dS(Ns'haven't figured out what this means yet(RP(R((Rtabort\scCstdƒ‚dS(Nshaven't written this yet(RP(RRB((RtloadbscCstdƒ‚dS(Nshaven't written this yet(RP(RRc((RtloadXMLescCsD|djo
|}n$|i|j	otiiƒ‚n|iƒS(N(tsnodeRRt
ownerDocumentR0R1tWrongDocumentErrttoxml(RR£((RtsaveXMLhs


(RRRRRžRRŸR R¡R¢R§(((RRœPs					tDOMImplementationLScBs/tZdZdZd„Zd„Zd„ZRS(NiicCst|dj	otiidƒ‚n||ijotƒSn||i	jotiidƒ‚nt
dƒ‚dS(NsschemaType not yet supporteds'asynchronous builders are not supportedsunknown value for mode(t
schemaTypeRR0R1R2tmodeRtMODE_SYNCHRONOUSRtMODE_ASYNCHRONOUSRO(RRªR©((RtcreateDOMBuilderts
cCstdƒ‚dS(Ns-the writer interface hasn't been written yet!(RP(R((RtcreateDOMWriterscCstƒS(N(R(R((RtcreateDOMInputSourceƒs(RRR«R¬R­R®R¯(((RR¨ps
		(RRFtxml.domR0txml.dom.minicompattxml.dom.NodeFilterRšt__all__RRR-tNewStyleRRRRœR¨(R0RšR-RœR³RRRRR¨RFR((Rt?s		
 ¤	,1 

Anon7 - 2021