MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/proc/self/root/usr/lib/python2.4/site-packages/_xmlplus/parsers/xmlproc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/proc/self/root/usr/lib/python2.4/site-packages/_xmlplus/parsers/xmlproc/xmlval.pyo
mò
²¬5=c@s~dZdkZdkZdkZdkZdkZdkZdkTdkTdk	Tdfd„ƒYZ
defd„ƒYZdS(sðThis is the parts of xmlproc that are specific to validation. They
are an application class that receive data from the parser and a
subclass of the parser object that sets this up.

$Id: xmlval.py,v 1.16 2002/07/17 17:43:14 mikeolson Exp $
N(t*tXMLValidatorcBs.tZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zdd„Zd„Zed„Zd„Zd„Zd„Zd„Z d „Z!d!„Z"RS("sšXML parser that validates a document and does some of what is required
    of a validating parser, like adding fixed and default attribute values
    etc.cCsPtƒ|_tƒ|_t|iƒ|_t|i|iƒ|_|i	ƒdS(N(
tXMLProcessortselftparsertApplicationtapptCompleteDTDtdtdt
ValidatingApptvaltreset(R((tC/usr/lib/python2.4/site-packages/_xmlplus/parsers/xmlproc/xmlval.pyt__init__s
cCs|ii|ƒdS(N(RRtparse_resourcetsysid(RR((RRscCsl|iiƒ|iiƒ|iiƒ|ii|iƒ|i|i_|i|i_|iidƒdS(Ni(RRRR
Rtset_applicationtenttset_read_external_subset(R((RR!s


cCs|ii|ƒdS(N(RRtfeedtdata(RR((RR+scCs|iiƒdS(N(RRtclose(R((RR.scCs|iiƒdS(N(RRtderef(R((RR1scCs0||_|ii|iƒ|i|iƒdS(N(RRR
tset_real_apptset_locatorR(RR((RR4s	cCs|ii|ƒdS(N(RRtset_error_languagetlanguage(RR((RR9scCs|ii|ƒdS(N(RRtset_error_handlerterr(RR((RR<scCs|ii|ƒdS(N(RRtset_dtd_listenertdtd_listener(RR((RR?scCs|ii|ƒdS(N(RRtset_inputsource_factorytisf(RR ((RRBscCs$|ii|ƒ|ii|ƒdS(N(RR
tset_pubid_resolvertpubresR(RR"((RR!EsicCs|ii|ƒdS(N(RRtset_data_after_wf_errort
stop_on_wf(RR$((RR#IscCs|ii|ƒdS(N(RRt	set_sysidR(RR((RR%LscCsdS(N((Rtread_it((RROscCs|iS(N(RR(R((Rtget_dtdRscCs
|iiƒS(N(RRtget_current_sysid(R((RR(UscCs
|iiƒS(N(RRt
get_offset(R((RR)XscCs
|iiƒS(N(RRtget_line(R((RR*[scCs
|iiƒS(N(RRt
get_column(R((RR+^scCs|iiƒdS(N(RRt
parseStart(R((RR,ascCs|iiƒdS(N(RRtparseEnd(R((RR-dsi@cCs|ii||ƒdS(N(RRt	read_fromtfiletbufsize(RR/R0((RR.gscCs|iiƒdS(N(RRtflush(R((RR1jscCs|ii||ƒdS(N(RRtreport_errorterrnotargs(RR3R4((RR2mscCs
|iiS(s>Returns the internal element stack. Note: this is a live list!N(RRtstack(R((Rtget_elem_stackrscCs
|iiS(s Returns the current data buffer.N(RRR(R((Rtget_data_buffervscCs
|iiS(sPReturns the start position of the current construct (tag, comment,
        etc).N(RRtprepos(R((Rtget_construct_startzscCs
|iiS(sNReturns the end position of the current construct (tag, comment,
        etc).N(RRtpos(R((Rtget_construct_endscCs|ii|ii|ii!S(s.Returns the raw form of the current construct.N(RRRR8R:(R((Rtget_raw_construct„scCstd„|iiƒS(ssReturns a snapshot of the entity stack. A list of the system
        identifier of the entity and its name, if any.cCs|d|dfS(Nii	(R(R((Rt<lambda>‹sN(tmapRRt	ent_stack(R((Rtget_current_ent_stackˆs(#t__name__t
__module__t__doc__R
RRRRRRRRRRR!R#R%RR'R(R)R*R+R,R-R.R1tNoneR2R6R7R9R;R<R@(((RRs@			
																								R	cBs§tZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„Zd„Zd„ZRS(s@The object that uses the DTD to actually validate XML documents.cCs8||_||_tƒ|_tƒ|_|iƒdS(N(RRRRtrealappt
PubIdResolverR"R(RRR((RR
”s
		cCs:d|_d|_g|_h|_g|_d|_dS(Ni(RDRtcur_elemt	cur_stateR5tidstidrefst
_seen_root(R((RR›s					cCs
||_dS(N(RRRE(RR((RR£scCs
||_dS(N(R"R(RR"((RR!¦scCs$ti||ƒ|ii|ƒdS(N(RRRtlocatorRE(RRL((RR©scCsº|iiƒ}|idjoÆ|idjo–|ii|i|ƒ}|djod|ii
|i|ƒ}|o.|ii
d|d|fƒ|d|_qÁ|ii
d|ƒqÅ||_n|ii|i|ifƒn=|io1|djo$||jo|ii
d|ƒnd|_yG|ii|ƒ|_|iiƒ|_|i|ii|ƒ|ƒWn/tj
o#|ii
d|ƒd|_nX|ii||ƒdS(NiÿÿÿÿiiéiiÑiÒiÓ(RRt
get_root_elemt	decl_rootRGRDRHt
next_statetnametnexttnext_state_skiptskipRR2R5tappendRKtget_elemtget_start_statetvalidate_attributestattrstKeyErrorREthandle_start_tag(RRPRXRSRQRN((RRZ­s.

 %	 cCs°|idjoU|ii|iƒo>|ii|iƒ}|iid|t
i|dƒfƒn|ii
|ƒ|igjo'|id\|_|_|id=ndS(s>Notifies the application of end tags (and empty element tags).iÔs, iÿÿÿÿN(RRGRDtfinal_stateRHtget_valid_elementstvalidRR2RPtstringtjoinREthandle_end_tagR5(RRPR]((RR`Ðs')cCsÄ|idjoš|idjoŠ|ii|idƒ}|djoX|ii|||ƒx7|||!D](}|djo|ii
dƒPqiqiWdSqª||_n|ii|||ƒdS(s+Notifies the application of character data.iÿÿÿÿs#PCDATAis 	
iÕN(RRGRDRHRORQREthandle_ignorable_dataRtstarttendtchRR2thandle_data(RRRbRcRdRQ((RReàs 

	
cCs^xù|iƒD]ë}y|i|ƒ}Wn)tj
o|ii	d|ƒq
nX|i
djo$titi
||ƒƒ||<n|i|||iƒ|i
djoG|ii||ƒo|ii	d||ƒnd|i||<q
|i
djo3|ii|iiƒ|iiƒ||fƒq
|i
djoMx®ti
||ƒD]1}|ii|iiƒ|iiƒ|fƒq[Wq
|i
djo|i||ƒq
|i
d	jo/x,ti
||ƒD]}|i|ƒqÝWq
q
Wx[|iƒD]M}|i|ƒ}|id
jo(|i|ƒo|ii	d|ƒq	q	WdS(
sgValidates the attributes against the element declaration and adds
        fixed and default attributes.iÖtCDATAtIDi×ttIDREFtIDREFStENTITYtENTITIESs	#REQUIREDiÚN(RXtkeystattrtelementtget_attrtdeclRYRRR2ttypeR^R_tsplittvalidateRIthas_keyRJRTRLR*R+tidreft$_ValidatingApp__validate_attr_entreftent_reft
get_attr_list(RRoRXRqRnRxRv((RRWòs@
$33
!cCsªy}|ii|ƒ}|idjo|iidƒnDy|ii|iƒWn)t	j
o|iid|iƒnXWn&t	j
o|iid|ƒnXdS(NRhiØiÙiÍ(
RRt
resolve_geRPRtnotationRR2tget_notationRY(RRPR((Rt__validate_attr_entrefscCsXxD|iD]9\}}}|ii|ƒp|iid|ƒq
q
W|i	i
ƒdS(NiÛ(RRJtlinetcoltidRIRuRR2REtdoc_end(RR€R~R((RR)s

cCs&|ii|||ƒ||i_dS(N(RREthandle_doctypetrootnametpub_idtsys_idRt	root_elem(RRƒR„R…((RR‚0scCs|iiƒdS(N(RREt	doc_start(R((RR‡7scCs|ii|ƒdS(N(RREthandle_commentR(RR((RRˆ:scCs|ii|||ƒdS(N(RRERaRRbRc(RRRbRc((RRa=scCs|ii||ƒdS(N(RREt	handle_pittargetR(RRŠR((RR‰@scCs|ii|||ƒdS(N(RREtset_entity_infotxmlvertenctsddecl(RRŒRRŽ((RR‹Cs(RARBRCR
RRR!RRZR`ReRWRwRR‚R‡RˆRaR‰R‹(((RR	‘s$						#			*	
						(
RCturlparsetostanydbmR^tcPicklettimetxmlproctxmldtdtxmlappRRR	(R’R‘R^RR“RRR	((Rt?s6

Anon7 - 2021