KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/22697/root/usr/lib64/python2.4/site-packages/ldap/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/22697/root/usr/lib64/python2.4/site-packages/ldap/controls.pyc
mò
h,¸Bc@sãdZdZdgZdklZdkZdkZdfd„ƒYZdefd„ƒYZdefd	„ƒYZ	d
„Z
d„ZhZxQe
ƒD]FZeeƒZeeƒejo!eedƒoeeei<q•q•WdS(
s
controls.py - support classes for LDAP controls

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

\$Id: controls.py,v 1.4 2005/06/21 14:59:47 stroeder Exp $

Description:
The ldap.controls module provides LDAPControl classes.
Each class provides support for a certain control.
s0.0.1tLDAPControl(s	ClassTypeNcBsAtZdZeed„Zd„Zd„Zd„Zd„ZRS(s&
  Base class for all LDAP controls
  cCs/||_||_|p
|i|ƒ|_dS(N(tcontrolTypetselftcriticalitytcontrolValuetdecodeControlValuetencodedControlValue(RRRRR((t3/usr/lib64/python2.4/site-packages/ldap/controls.pyt__init__s		cCs#d|ii|i|i|ifS(Ns%s(%s,%s,%s)(Rt	__class__t__name__RRR(R((Rt__repr__#scCs|S(N(tvalue(RR((RtencodeControlValue&scCs|S(N(tencodedValue(RR((RR)scCs|i|i|i|iƒfS(N(RRRR
R(R((RtgetEncodedTuple,s(	R
t
__module__t__doc__tNoneRRR
RR(((RRs			tBooleanControlcBsPtZdZhdd<dd<Zhdd<dd<Zd„Zd„ZRS(sš
  Base class for simple controls with booelan control value

  In this base class controlValue has to be passed as
  boolean type (True/False or 1/0).
  isÿiscCs|it|ƒS(N(Rtboolean2bertintR(RR((RR
:scCs|i|S(N(Rtber2booleanR(RR((RR=s(R
RRRRR
R(((RR0s
	tSimplePagedResultsControlcBs8tZdZeiZeed„Zd„Zd„Z	RS(sR
  LDAP Control Extension for Simple Paged Results Manipulation

  see RFC 2696
  cCs ti|ti|||ƒdS(N(RRRtldaptLDAP_CONTROL_PAGE_OIDRRR(RRRRR((RRIscCs|\}}ti||ƒS(N(Rtsizetcookiet_ldaptencode_page_control(RRRR((RR
LscCsti|ƒ\}}||fS(N(Rtdecode_page_controlRRR(RRRR((RRPs(
R
RRRRRRRR
R(((RRAs
		cCsD|djodSn,g}|D]}||iƒq ~}|SdS(s^
  Return list of readily encoded 3-tuples which can be directly
  passed to C module _ldap
  N(tldapControlsRt_[1]tcRtresult(RR R!R"((RtEncodeControlTuplesUs

'cCsJg}|pgD]1\}}}|ti|tƒ||d|ƒq~S(s^
  Return list of readily encoded 3-tuples which can be directly
  passed to C module _ldap
  RN(R tldapControlTuplesRRRtknownLDAPControlstgetR(R$RR RR((RtDecodeControlTuplesdsR(Rt__version__t__all__ttypest	ClassTypeRRRRRR#R'R%tdirtsymbol_nametevalR!ttypethasattrR(
R%R!R-R)R#R+RRRRRR(R'((Rt?s	
		
#

Anon7 - 2021