<br><br><div class="gmail_quote">On Sat, Apr 18, 2009 at 4:23 PM, karlos barlos <span dir="ltr"><<a href="mailto:karlosbarlos@yahoo.com">karlosbarlos@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
hello to all !!<br><br>given the code :<br><br>elif choice == "3":<br> print "all users list :"<br> print"\n"<br> import active_directory<br> for user in active_directory.search ("objectCategory='Person'", "objectClass='User'"):<br>
print user<br><br>""<br><br>that lists all active directory personal ...<br><br>how can i pipe this into a csv file ??<br><br>or a text file ?<br><br>do need to first make it txt and then csv??<br></td>
</tr></tbody></table><br></blockquote><div><br><a href="http://www.lmgtfy.com/?q=python+csv">http://www.lmgtfy.com/?q=python+csv</a><br><br>Also, look at <br><br><a href="http://www.catb.org/~esr/faqs/smart-questions.html">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br>