From: <mi...@st...> - 2004-12-21 07:05:09
|
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. |