[python-ldap] Patch: Allow abort of ldif parsing
Fassl, Michael
michael.fassl at lgi.com
Tue Apr 23 19:00:07 CEST 2013
Hi Michael!
"Michael Ströder" wrote:
> You could easily implement your own custom class based on LDIFParser
> and raise an abort exception in your custom method handle().
>
> => no need for this patch
>
> Also changing the result type of handle() is rather cumbersome.
> I'd rather prefer a patch which implements a generator based on
> LDIFParser inspired by ldap.resiter.ResultProcessor. Hmm, maybe I
> already have some code for it somewhere on my hard disk...
I'm quite new to python and thus didn't think about that option.
I like your suggestion very much as it appears to be a lot more straight forward and does not have this "if you return a specific value some things will magically happen"-touch.
Thank you!
Best regards
Michael Fassl
More information about the python-ldap
mailing list