Popular recipes by Anthony Barker http://code.activestate.com/recipes/users/122940/2006-09-19T19:02:54-07:00ActiveState Code RecipesPaypal IPN (Python) 2006-09-19T19:02:54-07:00Anthony Barkerhttp://code.activestate.com/recipes/users/122940/http://code.activestate.com/recipes/456361-paypal-ipn/ <p style="color: grey"> Python recipe 456361 by <a href="/recipes/users/122940/">Anthony Barker</a> (<a href="/recipes/tags/cgi/">cgi</a>). Revision 2. </p> <p>This is a cgi script that allows you to log an ipn request from paypal. Basically if you configure your paypal account with an ipn url it will send a post to a script url. You need to respond with a post and then will receive a VERIFIED response.</p> <p>I've included a subroutine to log the data to a database, but you could simply use a text file if that is all you need.</p> Covert Microsoft Office InfoPath 2003 files to CSV report (Python) 2005-11-02T13:18:49-08:00Anthony Barkerhttp://code.activestate.com/recipes/users/122940/http://code.activestate.com/recipes/442520-covert-microsoft-office-infopath-2003-files-to-csv/ <p style="color: grey"> Python recipe 442520 by <a href="/recipes/users/122940/">Anthony Barker</a> . </p> <p>I needed a quick hack to extract some data from MS InfoPath files stored on a file server. Infopath data files are stored as XML so it was fairly straight forward to extract the required information. The outputed file is report.csv and a log file is called reportlog.txt. It reads settings from config.ini.</p> Find and replace string in all files in a directory (Python) 2004-04-12T05:56:11-07:00Anthony Barkerhttp://code.activestate.com/recipes/users/122940/http://code.activestate.com/recipes/277753-find-and-replace-string-in-all-files-in-a-director/ <p style="color: grey"> Python recipe 277753 by <a href="/recipes/users/122940/">Anthony Barker</a> (<a href="/recipes/tags/text/">text</a>). </p> <p>A friend of mine needed to change the IP address in his DNS hosting bind configuration. Here is a quick script I wrote during lunch it interates all files in a directory and finds and replaces as string. In this case an IP address.</p>