Popular recipes by A.M. Kuchling http://code.activestate.com/recipes/users/681412/2005-01-31T17:37:28-08:00ActiveState Code RecipesTransmitting exceptions through XML-RPC (Python) 2005-01-31T17:37:28-08:00A.M. Kuchlinghttp://code.activestate.com/recipes/users/681412/http://code.activestate.com/recipes/365244-transmitting-exceptions-through-xml-rpc/ <p style="color: grey"> Python recipe 365244 by <a href="/recipes/users/681412/">A.M. Kuchling</a> (<a href="/recipes/tags/web/">web</a>). </p> <p>Python's xmlrpclib only raises the xmlrpclib.Fault exception, but it can be convenient to allow more different kinds of exceptions to be raised. This recipe provides a customized subclass of xmlrpclib.ServerProxy that looks for Fault exceptions where the message is of the form &lt;exception name&gt;:&lt;message&gt;, and raises the corresponding exception.</p> Watching a directory tree on Unix (Python) 2003-08-11T18:23:58-07:00A.M. Kuchlinghttp://code.activestate.com/recipes/users/681412/http://code.activestate.com/recipes/215418-watching-a-directory-tree-on-unix/ <p style="color: grey"> Python recipe 215418 by <a href="/recipes/users/681412/">A.M. Kuchling</a> (<a href="/recipes/tags/files/">files</a>). </p> <p>The watch_directories() function takes a list of paths and a callable object, and then repeatedly traverses the directory trees rooted at those paths, watching for files that get deleted or have their modification time changed. The callable object is then passed two lists containing the files that have changed and the files that have been removed.</p> Filtering out elements/attributes from a given namespace (Python) 2002-09-11T10:36:35-07:00A.M. Kuchlinghttp://code.activestate.com/recipes/users/681412/http://code.activestate.com/recipes/149284-filtering-out-elementsattributes-from-a-given-name/ <p style="color: grey"> Python recipe 149284 by <a href="/recipes/users/681412/">A.M. Kuchling</a> (<a href="/recipes/tags/xml/">xml</a>). </p> <p>This recipe shows a simple way to filter out elements and attributes belonging to a particular namespace.</p>