From 1c0e0acdad02bca78628dc6902f95aabcc9b8f8c Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Thu, 6 Dec 2001 20:01:48 +0000 Subject: move search_for_dn's contents here, and add an "existing_objectclasses" 2001-12-05 Chris Toshok * backend/pas/pas-backend-ldap.c (search_for_dn_with_objectclasses): move search_for_dn's contents here, and add an "existing_objectclasses" parameter that we pass on to build_card_from_entry. (search_for_dn): call search_for_dn_with_objectclasses with NULL for existing_objectclasses. (build_card_from_entry): if existing_objectclasses is non-NULL, fill it in with the list of existing objectclass values for this entry. (add_objectclass_mod): if existing_objectclasses is non-NULL, meaning we're modifying an entry, search in the existing objectclasses for the ones we want to be there, and only add what's missing. If none are missing, don't add objectclass_mod to the list of mods. (create_card_handler): track change to add_objectclass_mod (pass NULL). (modify_card_handler): use search_for_dn_with_objectclasses instead of search_for_dn, and pass the existing objectclasses to add_objectclass_mod. also, free the list when we're done. (poll_ldap): track change to build_card_from_entry (pass NULL). svn path=/trunk/; revision=14909 --- addressbook/ChangeLog | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'addressbook/ChangeLog') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index d1288b2026..44cb5e44d7 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,26 @@ +2001-12-05 Chris Toshok + + * backend/pas/pas-backend-ldap.c + (search_for_dn_with_objectclasses): move search_for_dn's contents + here, and add an "existing_objectclasses" parameter that we pass + on to build_card_from_entry. + (search_for_dn): call search_for_dn_with_objectclasses with NULL + for existing_objectclasses. + (build_card_from_entry): if existing_objectclasses is non-NULL, + fill it in with the list of existing objectclass values for this + entry. + (add_objectclass_mod): if existing_objectclasses is non-NULL, + meaning we're modifying an entry, search in the existing + objectclasses for the ones we want to be there, and only add + what's missing. If none are missing, don't add objectclass_mod to + the list of mods. + (create_card_handler): track change to add_objectclass_mod (pass + NULL). + (modify_card_handler): use search_for_dn_with_objectclasses + instead of search_for_dn, and pass the existing objectclasses to + add_objectclass_mod. also, free the list when we're done. + (poll_ldap): track change to build_card_from_entry (pass NULL). + 2001-12-05 Chris Toshok * gui/contact-editor/e-contact-editor.c (enable_writable_fields): -- cgit v1.2.3