Nice unicode -> ascii translation?

2006-08-06 Thread crowell
I'm using the ID3 tag of an mp3 file to query musicbrainz to get their sort-name for the artist. A simple example is "The Beatles" -> MusicBrainz -> "Beatles, The". I then want to rename the mp3 file using this information. However, I would like the filename to contain only ascii characters, whi

HTTPServer and ThreadingMixIn

2006-05-15 Thread crowell
Hello, I am having trouble getting the ThreadingMixIn to do what I want. Looking over the docs (and some old code I wrote which successfully does what I want), I arrived at the following: import time import SocketServer import BaseHTTPServer class TheServer(SocketServer.ThreadingMixIn, BaseHTTPS

calling the java jar utility from python

2006-04-07 Thread Jonathan Crowell
Hi.  I want to invoke the java jar utility from my python script and pass it a couple of arguments.  Can anyone tell me how to do this? Thanks, Jon -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error

os.execvp() is giving me trouble

2006-04-07 Thread Jonathan Crowell
Hi All, Sorry if this is a newbie question.  I promise I have RTFMed, though. Here goes: I'm trying to invoke an external program from python.  The program is jar.exe, which is part of java.  The following is the command I want to send: jar -xvf file1.jar jile2.jar file3.jar os.execvp(file, a