From: Wido D. <wid...@gm...> - 2004-12-29 15:47:12
|
On Tue, 21 Dec 2004 08:04:05 +0100, Michael Str=F6der <mi...@st...> wrote: > 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. >=20 > Use StringIO or for that. >=20 > try: > from cStringIO import StringIO > except ImportError: > from StringIO import StringIO Thanks for the tip. Initially I was searching for something like this, but wasn't successfull. Maybe I need to get to know the python standard library even more :) mfg. Wido --=20 Wido Depping ICQ: 51303067 AIM: wido3379 Jabber: wi...@ja... Blog: http://widoww.blogspot.com |