[prev in list] [next in list] [prev in thread] [next in thread]
List: python-ldap-dev
Subject: Re: Export to LDIF
From: Michael_Ströder <michael () stroeder ! com>
Date: 2004-12-21 7:04:05
Message-ID: 41C7CAE5.7080707 () stroeder ! com
[Download RAW message or body]
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.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic