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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/lib/python2.4/site-packages/ldap/async.pyc
mò
*Z@c@sâdZdkZdZheid<eid<eid<Zheid<eid<Zde	fd„ƒYZ
dfd„ƒYZdefd„ƒYZd	efd
„ƒYZ
de
fd„ƒYZd
e
fd„ƒYZdS(s
ldap.async - handle async LDAP operations
written by Michael Stroeder <michael@stroeder.com>

See http://python-ldap.sourceforge.net for details.

\$Id: async.py,v 1.21 2004/03/10 19:37:57 stroeder Exp $

Python compability note:
Tested on Python 2.0+ but should run on Python 1.5.x.
Ns0.0.3tWrongResultTypecBstZd„Zd„ZRS(NcCs#||_||_ti|ƒdS(N(treceivedResultTypetselftexpectedResultTypest	Exceptiont__init__(RRR((t./usr/lib/python2.4/site-packages/ldap/async.pyR s		cCsd|idi|iƒfS(Ns3Received wrong result type %s (expected one of %s).s, (RRtjoinR(R((Rt__str__%s(t__name__t
__module__RR(((RRs	tAsyncSearchHandlercBsYtZdZd„Zedddd„Zd„Zd„Zdddd„Zd„Z	RS(	s6
  Class for stream-processsing LDAP search results
  cCs||_d|_dS(sa
    Initialize a StreamResultHandler
    
    Parameters:
    l
        LDAPObject instance
    N(tlRt_ltNonet_msgId(RR((RR1s	iiÿÿÿÿc
Cs1|ii|||||dd||ƒ	|_dS(s1
    searchRoot
        See parameter base of method LDAPObject.search()
    searchScope
        See parameter scope of method LDAPObject.search()
    filterStr
        See parameter filter of method LDAPObject.search()
    attrList=None
        See parameter attrlist of method LDAPObject.search()
    attrsOnly
        See parameter attrsonly of method LDAPObject.search()
    timeout
        Maximum time the server shall use for search operation
    sizeLimit
        Maximum number of entries a server should return
        (request client-side limit)
    N(RR
t
search_extt
searchRoottsearchScopet	filterStrtattrListt	attrsOnlyRttimeoutt	sizelimitR(RRRRRRRR((RtstartSearch<scCsdS(sd
    Do anything you want after starting search but
    before receiving and processing results
    N((R((Rt
preProcessing]scCsdS(sE
    Do anything you want after receiving and processing results
    N((R((RtpostProcessingcscCs–|iƒd}||}d}	d}d|_||_	zd\}
}x|	ox;|
djo-|o%|i
i|id|ƒ\}
}qTW|pPnti|
ƒpt|
tiƒƒ‚nxt|D]l}||jo|id|_n<|djp
||jo|i|
|ƒnd}	d}P|d}qËWd\}
}||_	qJWWd|o'|idjo|i
i|iƒnX|iƒ|S(s1
    ignoreResultsNumber
        Don't process the first ignoreResultsNumber results.
    processResultsCount
        If non-zero this parameters indicates the number of results
        processed is limited to processResultsCount.
    timeout
        See parameter timeout of ldap.LDAPObject.result()
    iiN(NN(NN(RRtresult_countertignoreResultsNumbertprocessResultsCounttend_result_countertgo_aheadtpartialtbeginResultsDroppedtendResultBreakRtresult_typetresult_listR
tresultRRt_searchResultTypesthas_keyRtkeystresult_itemt_processSingleResulttabandonR(RRRRR$R RR)RRR#((RtprocessResultshsH	

		&

cCsdS(sv
    Process single entry

    resultType
        result type
    resultItem
        Single item of a result list
    N((Rt
resultTypet
resultItem((RR*•s(
R	R
t__doc__RRRRRR,R*(((RR,s	!		-tListcBs tZdZd„Zd„ZRS(s¾
  Class for collecting all search results.
  
  This does not seem to make sense in the first place but think
  of retrieving exactly a certain portion of the available search
  results.
  cCsti||ƒg|_dS(N(RRRRt
allResults(RR((RRªscCs|ii||fƒdS(N(RR1tappendR-R.(RR-R.((RR*®s(R	R
R/RR*(((RR0¡s	t
FileWritercBs/tZdZddd„Zd„Zd„ZRS(sH
  Class for writing a stream of LDAP search results to a file object
  tcCs/ti||ƒ||_||_||_dS(s¦
    Initialize a StreamResultHandler
    
    Parameters:
    l
        LDAPObject instance
    f
        File object instance where the LDIF data is written to
    N(RRRRtft_ft	headerStrt	footerStr(RRR5R7R8((RR·s
			cCs|ii|iƒdS(ss
    The headerStr is written to output after starting search but
    before receiving and processing results.
    N(RR6twriteR7(R((RRÆscCs|ii|iƒdS(sX
    The footerStr is written to output after receiving and
    processing results.
    N(RR6R9R8(R((RRÍs(R	R
R/RRR(((RR3²s	t
LDIFWritercBs&tZdZddd„Zd„ZRS(sC
  Class for writing a stream LDAP search results to a LDIF file
  R4cCs^dk}t||iƒo
||_n|i|ƒ|_ti|||ii	||ƒdS(sÈ
    Initialize a StreamResultHandler
    
    Parameters:
    l
        LDAPObject instance
    writer_obj
        Either a file-like object or a ldif.LDIFWriter instance
        used for output
    N(tldift
isinstancet
writer_objR:Rt_ldif_writerR3RRt_output_fileR7R8(RRR=R7R8R;((RRÚs
	
cCs7ti|ƒo#|\}}|ii||ƒndS(N(	t_entryResultTypesR'R-R.tdntentryRR>tunparse(RR-R.RARB((RR*ìs(R	R
R/RR*(((RR:Õst
DSMLWritercBs&tZdZddd„Zd„ZRS(sC
  Class for writing a stream LDAP search results to a DSML file
  R4cCs^dk}t||iƒo
||_n|i|ƒ|_ti|||ii	||ƒdS(sÄ
    Initialize a StreamResultHandler

    Parameters:
    l
        LDAPObject instance
    writer_obj
        Either a file-like object or a ldif.DSMLWriter instance
        used for output
    N(tdsmlR<R=RDRt_dsml_writerR3RRR?R7R8(RRR=R7R8RE((RR÷s
	
cCs7ti|ƒo#|\}}|ii||ƒndS(N(	R@R'R-R.RARBRRFRC(RR-R.RARB((RR*	s(R	R
R/RR*(((RRDòs(R/tldapt__version__tRES_SEARCH_ENTRYRtRES_SEARCH_RESULTtRES_SEARCH_REFERENCER&R@RRRR0R3R:RD(
RDRR0RR3R@R:RGR&RH((Rt?s	*u#

Anon7 - 2021