Ńņ /čźJc@sVdZddklZddkZddkZd„Zdd„Zddd„ZdS(s ldap.modlist - create add/modify modlist's See http://www.python-ldap.org/ for details. $Id: modlist.py,v 1.17 2009/07/26 11:09:58 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. i’’’’(t __version__NcCs%h}x|D]}d||%s(Rtmaptstringtlowertkeysthas_keytfiltertappend(tentrytignore_attr_typestmodlisttattrtypet attrvaluelist((s2/usr/lib64/python2.6/site-packages/ldap/modlist.pyt addModlists ic Cs¢ttti|pgƒƒ}g}h}x'|iƒD]}||ti|ƒqb| o%| o|it i |dfƒqbqbW|pUxR|iƒD]@}|i|ƒoqVn||}|it i |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. cSs |djS(N(R(R((s2/usr/lib64/python2.6/site-packages/ldap/modlist.pyRIscSs |djS(N(R(R((s2/usr/lib64/python2.6/site-packages/ldap/modlist.pyRLsiN(RRR R R R R tgetRtldaptMOD_ADDtlent MOD_DELETER(t old_entryt new_entryRtignore_oldexistentRtattrtype_lower_maptaRtattrtype_lowert new_valuet old_valuetreplace_attr_valuetold_value_dicttnew_value_dictt delete_valuestvt add_values((s2/usr/lib64/python2.6/site-packages/ldap/modlist.pyt modifyModlist+sd      !!  !(t__doc__RRR RRRR((((s2/usr/lib64/python2.6/site-packages/ldap/modlist.pyt s