async.LDIFWriter
Michael Ströder
michael at stroeder.com
Mon May 26 09:58:30 CEST 2003
Andrew Thomson wrote:
> Thanks, that's perfect..
>
> one other question if I may.. how can I modify the following,
>
> __init__(self, output_file, base64_attrs=None, cols=76, line_sep='\n')
Funny you ask for that. In this minute I've checked in a new version which
lets you pass in either a ldif.LDIFWriter instance instead or a file-like
object.
Give it a try:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/python-ldap/python-ldap/Lib/ldap/async.py
> cols
> Specifies how many columns a line may have before it's
> folded into many lines.
>
> to increase the column length.. some of my entries are wrapping.
You really should use a LDIF consumer which correctly processes folded lines
(see RFC 2849).
Ciao, Michael.
More information about the python-ldap
mailing list