From: Fabio M. <fab...@du...> - 2005-06-03 10:15:22
|
Thanks very much! Where I can find other docs about LDIFWriter (and ldif parser)? Thanks, =46abio Alle 11:36, venerd=EC 03 giugno 2005, Michael Str=F6der ha scritto: > Fabio Marcone wrote: > > I need to backup an ldap directory from python. I try to follow example > > in docs about LDIFWriter but I have this problem: I want to have the ld= if > > output in a file, not in standard output, and so: how can I do? what > > paramenter I have to pass to LDIFWriter in place of sys.stdout ? > > Simply pass a file object as argument: > > f =3D open('/tmp/dirbackup.ldif','wb') > ldif_writer=3Dldif.LDIFWriter(f) > > Ciao, Michael. > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=3Doffad-ysdn-ostg-q22= 005 > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev =2D-=20 Dott. Fabio Marcone 2T srl Telefono +39 - 0871- 540154 =20 =46ax +39 - 0871- 571594 =20 Indirizzo Viale B. Croce 573, 66013 Chieti Scalo (CH) |