From 57123f2a9993be9e9ea83c1203f0670e67986de9 Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Wed, 24 Jun 2009 15:18:34 +0200 Subject: Fix minor bugs, typos, etc. discovered by unit tests in plugins. --- ipalib/plugins/baseldap.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipalib/plugins/baseldap.py') diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index b7766cea..d2270aef 100644 --- a/ipalib/plugins/baseldap.py +++ b/ipalib/plugins/baseldap.py @@ -277,7 +277,7 @@ class LDAPDelete(crud.Delete): None, [''], dn, ldap.SCOPE_ONELEVEL ) except errors.NotFound: - pass + break else: for (dn_, entry_attrs) in subentries: ldap.delete_entry(dn_) @@ -367,7 +367,7 @@ class LDAPSearch(crud.Search): except errors.NotFound: (entries, truncated) = (tuple(), False) - self.post_callback(self, ldap, entries, *args, **options) + self.post_callback(self, ldap, entries, truncated, *args, **options) return (entries, truncated) @@ -393,6 +393,6 @@ class LDAPSearch(crud.Search): def pre_callback(self, ldap, filter, attrs_list, base_dn, *args, **options): return filter - def post_callback(self, ldap, entries, *args, **options): + def post_callback(self, ldap, entries, truncated, *args, **options): pass -- cgit