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/modlist.pyc
mņ
#O@c@sFdZdZdkZdkZd„Zdd„Zddd„ZdS(s>
ldap.modlist - create add/modify modlist's
(c) by Michael Stroeder <michael@stroeder.com>

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

$Id: modlist.py,v 1.14 2004/01/22 22:30:59 stroeder Exp $

Python compability note:
This module is known to work with Python 2.0+ but should work
with Python 1.5.2 as well.
s0.1.1NcCs%h}x|D]}d||<q
W|S(sN
  return a dictionary with all items of l being the keys of the dictionary
  N(tdtltitNone(RRR((t2/usr/lib64/python2.4/site-packages/ldap/modlist.pyt	list_dictscCs˜ttti|pgƒƒ}g}xl|iƒD]^}|i	ti|ƒƒoq2nt
d„||ƒ}|o|i|||fƒq2q2W|S(s5Build modify list for call of method LDAPObject.add()cCs
|djS(N(txR(R((Rt<lambda>'sN(
Rtmaptstringtlowertignore_attr_typestmodlisttentrytkeystattrtypethas_keytfiltert
attrvaluelisttappend(R
RRRR((Rt
addModlists
icCs¢ttti|pgƒƒ}g}h}x'|iƒD]}
|
|ti|
ƒ<q8Wxź|iƒD]Ü}ti|ƒ}|i
|ƒoqbntd„||ƒ}|i
|ƒo3|i||gƒ}	td„|	ƒ}	||=ng}	|	o$|o|iti||fƒqb|	oņ|oėt|	ƒt|ƒj}|p‹t|	ƒ}t|ƒ}g}
x)|	D]!}|i
|ƒpd}PqkqkWg}|p0x-|D]!}|i
|ƒpd}Pq¤q¤WqŃn|o6|iti|dfƒ|iti||fƒq>qb|	o%|o|iti|dfƒqbqbW|pUxR|iƒD]@}
|i
|
ƒoqVn||
}|iti|dfƒqVWn|S(s;
  Build differential modify list for calling LDAPObject.modify()/modify_s()

  old_entry
      Dictionary holding the old entry
  new_entry
      Dictionary holding what the new entry should be
  ignore_attr_types
      List of attribute type names to be ignored completely
  ignore_oldexistent
      If non-zero attribute type names which are in old_entry
      but are not found in new_entry at all are not deleted.
      This is handy for situations where your application
      sets attribute value to '' for deleting an attribute.
      In most cases leave zero.
  cCs
|djS(N(RR(R((RRKscCs
|djS(N(RR(R((RRNsiN(RRR	R
RRtattrtype_lower_mapt	old_entryRtat	new_entryRtattrtype_lowerRRt	new_valuetgett	old_valueRtldaptMOD_ADDtlentreplace_attr_valuetold_value_dicttnew_value_dictt
delete_valuestvt
add_valuest
MOD_DELETERtignore_oldexistent(RRRR'R R!RRR"RR#R%RRRRR$((Rt
modifyModlist-sf

	!!

!(t__doc__t__version__R	RRRRR((RR(RRR*R	((Rt?s
	


Anon7 - 2021