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/xmlapp.pyo
mò
SÑX=c@sždZdkZdkZdkZdkTdfd„ƒYZdfd„ƒYZdfd„ƒYZd	fd
„ƒYZdfd„ƒYZ	d
fd„ƒYZ
dS(s}
This file contains the default classes that are used to receive events
from the XML parser. All these classes are meant to be subclassed (or
imitated) by clients that want to handle these functions themselves.
Application is the class that receives document data from the parser,
and is probably the one most people want.

$Id: xmlapp.py,v 1.12 2002/08/13 09:28:51 afayolle Exp $
N(t*tApplicationcBsztZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„ZRS(
s‡This is the class that represents the application that receives
    parsed data from the parser. It is meant to be subclassed by users.cCs
d|_dS(N(tNonetselftlocator(R((tC/usr/lib/python2.4/site-packages/_xmlplus/parsers/xmlproc/xmlapp.pyt__init__scCs
||_dS(slGives the application an object to ask for the current location.
        Called automagically by the parser.N(RR(RR((Rtset_locatorscCsdS(s6Notifies the application of the start of the document.N((R((Rt	doc_startscCsdS(s4Notifies the application of the end of the document.N((R((Rtdoc_end#scCsdS(s%Notifies the application of comments.N((Rtdata((Rthandle_comment'scCsdS(s@Notifies the application of start tags (and empty element tags).N((Rtnametattrs((Rthandle_start_tag+scCsdS(s>Notifies the application of end tags (and empty element tags).N((RR((Rthandle_end_tag/scCsdS(s+Notifies the application of character data.N((RR
tstarttend((Rthandle_data3scCsdS(s?Notifies the application of character data that can be ignored.N((RR
RR((Rthandle_ignorable_data7scCsdS(s4Notifies the application of processing instructions.N((RttargetR
((Rt	handle_pi;scCsdS(s:Notifies the application of the document type declaration.N((RtroottpubIDtsysID((Rthandle_doctype?scCsdS(s´Notifies the application of information about the current entity
        supplied by an XML or text declaration. All three parameters will be
        None, if they weren't present.N((Rtxmlvertenctsddecl((Rtset_entity_infoCs(t__name__t
__module__t__doc__RRRR	RRRRRRRR(((RRs											t
PubIdResolvercBs)tZdZd„Zd„Zd„ZRS(sPAn application class that resolves public identifiers to system
    identifiers.cCs|S(s—Maps the public identifier of a parameter entity to a system
        identifier. The default implementation just returns the system
        identifier.N(tsysid(RtpubidR"((Rtresolve_pe_pubidQscCs|S(sœMaps the public identifier of the DOCTYPE declaration to a system
        identifier. The default implementation just returns the system
        identifier.N(R"(RR#R"((Rtresolve_doctype_pubidWscCs|S(s—Maps the public identifier of an external entity to a system
        identifier. The default implementation just returns the system
        identifier.N(R"(RR#R"((Rtresolve_entity_pubid]s(RRR R$R%R&(((RR!Ms		tErrorHandlercBsDtZdZd„Zd„Zd„Zd„Zd„Zd„ZRS(swAn error handler for the parser. This class can be subclassed by clients
    that want to use their own error handlers.cCs
||_dS(N(RR(RR((RRkscCs
||_dS(N(tlocRR(RR(((RRnscCs|iS(N(RR(R((Rtget_locatorqscCsdS(s"Handles a non-fatal error message.N((Rtmsg((RtwarningtscCs|i|ƒdS(N(RtfatalR*(RR*((RterrorxscCs‰|idjo
d|GHn\d|d|iiƒ|iiƒ|iiƒfGHd|ii|ii|iid!GHt	i
dƒdS(sHandles a fatal error message.sERROR: s at %s:%d:%ds
TEXT: '%s'i
iN(RRRR*tget_current_sysidtget_linet
get_columnR
tpostsystexit(RR*((RR,~s
5&(	RRR RRR)R+R-R,(((RR'gs					t
EntityHandlercBs tZdZd„Zd„ZRS(s!An entity handler for the parser.cCs
||_dS(N(tparserR(RR5((RR‘scCsCydt|fSWn*tj
o|iid|ƒdSnXdS(sResolves a general entity reference and returns its contents. The
        default method only resolves the predefined entities. Returns a
        2-tuple (n,m) where n is true if the entity is internal. For internal
        entities m is the value, for external ones it is the system id.iiÍtN(iR6(tpredef_entstentnametKeyErrorRR5treport_error(RR8((Rtresolve_ent_ref”s(RRR RR;(((RR4Žs	tDTDConsumercBsztZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„ZRS(
s|Represents an XML DTD. This class can be subclassed by applications
    which want to handle the DTD information themselves.cCs
||_dS(N(R5R(RR5((RR¨scCsdS(sCalled when DTD parsing starts.N((R((Rt	dtd_start«scCsdS(s)Called when the DTD is completely parsed.N((R((Rtdtd_end¯scCsdS(s.Receives internal general entity declarations.N((RRtval((Rtnew_general_entity³scCsdS(skReceives external general entity declarations. 'ndata' is the
        empty string if the entity is parsed.N((Rtent_nametpub_idtsys_idtndata((Rtnew_external_entity·scCsdS(s0Receives internal parameter entity declarations.N((RRR?((Rtnew_parameter_entity¼scCsdS(s0Receives external parameter entity declarations.N((RRR#R"((Rtnew_external_peÀscCsdS(sReceives notation declarations.N((RRR#R"((Rtnew_notationÄscCsdS(s,Receives the declaration of an element type.N((Rt	elem_namet	elem_cont((Rtnew_element_typeÈscCsdS(s,Receives the declaration of a new attribute.N((Rtelemtattrta_typeta_declta_def((Rt
new_attributeÌscCsdS(s#Receives the contents of a comment.N((Rtcontents((RRÐscCsdS(s8Receives the target and data of processing instructions.N((RRR
((RRÔs(RRR RR=R>R@RERFRGRHRKRQRR(((RR<¤s											tInputSourceFactorycBstZdZd„ZRS(s?A class that creates file-like objects from system identifiers.cCsM|dd!djpti|ƒddjot|ƒSnti|ƒSdS(Niis:\iR6(R"turlparsetopenturllib2turlopen(RR"((Rtcreate_input_sourceßs.(RRR RX(((RRSÜs(R R2RVRTtxmlutilsRR!R'R4R<RS(	RTR<R!RSRVR'R2RR4((Rt?	s:'8

Anon7 - 2021