Export to LDIF
Michael Ströder
michael at stroeder.com
Tue Dec 21 08:04:05 CET 2004
Wido Depping wrote:
> Is it possible that the LDIFWriter class can be extended to return the
> LDIF string and don't write it to a file handler? This is useful if
> you want to save the content to a resource which is not accessible
> with a file handler.
Use StringIO or for that.
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
...
Ciao, Michael.
More information about the python-ldap
mailing list