[python-ldap] Patch: Allow abort of ldif parsing

Fassl, Michael michael.fassl at lgi.com
Mon Apr 22 14:32:51 CEST 2013


Hi!

I've extended the LDIFParser class to be able to abort parsing by returning "False" in the "handle()" method.

Reason I implemented this:
I need  to search for an object in a LDIF file containing ~ 8 million records and I want to stop on the first match.

Please share your thoughts about that.

Cheers
nomike

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20130422/be5515cd/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20130422/be5515cd/attachment.txt>


More information about the python-ldap mailing list