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/sax/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/lib/python2.4/site-packages/_xmlplus/sax/saxexts.pyo
mς
τD->c@sρdZdkZdkZdkZdkZdkZdkZdfd„ƒYZdkZdei	fd„ƒYZ
deifd„ƒYZedd	d
ddd
dgƒZ
edgƒZedddgƒZeddgƒZgd„ZdS(s}
A module of experimental extensions to the standard SAX interface.

$Id: saxexts.py,v 1.14 2003/01/21 13:02:44 loewis Exp $
Nt
ParserFactorycBsbtZdZgd„Zd„Zd„Zeid djo
d„Zn
d„Zgd„Z	RS(	sA general class to be used by applications for creating parsers on
    foreign systems where it is unknown which parsers exist.cCsŒtiidƒotitiddƒ}nd}tid djo5ti	i
|ƒo"titi	i|ƒdƒ}n||_
dS(Nt
PY_SAX_PARSERt,spython.xml.sax.parseritjava(tostenvironthas_keytstringtsplittlistt_keytsystplatformtregistrytcontainsKeytgetPropertytselftparsers(RR	R
((t8/usr/lib/python2.4/site-packages/_xmlplus/sax/saxexts.pyt__init__s'"cCs|iS(s%Returns the list of possible drivers.N(RR(R((Rtget_parser_listscCs
||_dS(sSets the driver list.N(R	RR(RR	((Rtset_parser_listsiRcCs/dkl}|i|dtƒƒ}|iƒS(N(simpi(torg.python.coretimpt
importNametparser_nametglobalst
drv_modulet
create_parser(RRRR((Rt_create_parser#s
cCs"t|hhdgƒ}|iƒS(NR(t
__import__RRR(RRR((RR)scCsνdk}|djo
g}n$t|ƒtijo
|g}nx‘||iD]‚}y|i	|ƒSWqQt
j
o#}|ii
|ƒo‚qΣqQtij
o+}t|ƒd„}||i|_qQXqQWtiddƒ‚dS(siReturns a SAX driver for the first available parser of the parsers
        in the list. Note that the list is one of drivers, so it first tries
        the driver and if that exists imports it to see if the parser also
        exists. If no parsers are available a SAXException is thrown.

        Accepts a list of driver package names as an optional argument.NcCsti|ƒ‚dS(N(t_exceptionstSAXReaderNotAvailabletmsg(R!((RRIssNo parsers found(Rtparser_listtNonettypettypest
StringTypeRRRRtImportErrortetmodulesRRR tstrR(RR"R(RRR((Rtmake_parser-s"	


(
t__name__t
__module__t__doc__RRRRRRR+(((RRs		
	tExtendedParsercBsVtZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
RS(	s>Experimental unofficial SAX level 2 extended parser interface.cCstiddƒ‚dS(s"Returns a single-word parser name.sMethod not supported.N(RtSAXExceptionR#(R((Rtget_parser_nameTscCstiddƒ‚dS(slReturns the version of the imported parser, which may not be the
        one the driver was implemented for.sMethod not supported.N(RR0R#(R((Rtget_parser_versionXscCstiddƒ‚dS(s)Returns the version number of the driver.sMethod not supported.N(RR0R#(R((Rtget_driver_version]scCstiddƒ‚dS(s2True if the parser is validating, false otherwise.sMethod not supported.N(RR0R#(R((Rt
is_validatingascCstiddƒ‚dS(sZTrue if the parser is non-validating, but conforms to the spec by
        reading the DTD.sMethod not supported.N(RR0R#(R((Rtis_dtd_readingescCstiddƒ‚dS(s&Makes the parser start parsing afresh.sMethod not supported.N(RR0R#(R((RtresetjscCstiddƒ‚dS(sFeeds data to the parser.sMethod not supported.N(RR0R#(Rtdata((RtfeednscCstiddƒ‚dS(s@Called after the last call to feed, when there are no more data.sMethod not supported.N(RR0R#(R((Rtclosers(R,R-R.R1R2R3R4R5R6R8R9(((RR/Qs							tNosliceDocumentHandlercBs;tZdZd„Zd„Zd„Zd„Zd„ZRS(sbA document handler that does not force the client application to
    slice character data strings.cCstiiƒ|i|_dS(N(thandlertDocumentHandlerRRtsafe_handlert
characters(R((RR|s
cCsM|djo$|t|ƒjo|i|ƒn|i||||!ƒdS(sWA characters event handler that always works, but doesn't always
        slice strings.iN(tstarttlengthtlenR7Rthandle_data(RR7R?R@((RR=€s cCs|i||||!ƒdS(s5A character event handler that always slices strings.N(RRBR7R?R@(RR7R?R@((Rt
slice_handlerˆscCs|i|ƒdS(s4A character event handler that never slices strings.N(RRBR7(RR7R?R@((Rtnoslice_handlerŒscCsdS(s4This is the character data event method to override.N((RR7((RRBs(R,R-R.RR=RCRDRB(((RR:xs				sxml.sax.drivers.drv_pyexpatsxml.sax.drivers.drv_xmltoksxml.sax.drivers.drv_xmlprocsxml.sax.drivers.drv_xmltoolkitsxml.sax.drivers.drv_xmllibsxml.sax.drivers.drv_xmldcsxml.sax.drivers.drv_sgmlopsxml.sax.drivers.drv_xmlproc_valsxml.sax.drivers.drv_htmllibsxml.sax.drivers.drv_sgmllibcCs
ti|ƒS(N(tXMLParserFactoryR+R"(R"((RR+§s(R.RR;RRRR%RtsaxlibtParserR/R<R:REtXMLValParserFactorytHTMLParserFactorytSGMLParserFactoryR+(R:RRRFRRR;R/RIRJRERHR+RR%((Rt?s6E	'!

Anon7 - 2021