Set params=[] by default in ldapi.search

pull/5/head
David Bartley 15 years ago
parent 3bd15baa2b
commit 0dbd7a6dd5
  1. 2
      ceo/ldapi.py

@ -47,7 +47,7 @@ def lookup(ld, rdntype, rdnval, base, objectclass=None):
return abslookup(ld, dn, objectclass)
def search(ld, base, search_filter, params, scope=ldap.SCOPE_SUBTREE, attrlist=None, attrsonly=0):
def search(ld, base, search_filter, params=[], scope=ldap.SCOPE_SUBTREE, attrlist=None, attrsonly=0):
real_filter = search_filter % tuple(escape(x) for x in params)

Loading…
Cancel
Save