Re: Handling the log in BaseHTTPServer

2011-05-04 Thread Tapi
Hi, You may create a subclass of (or Mixin for) BaseHTTPRequestHandler to override its log_message() method. Here's a really simple example ; it's perfectible, but it should show you the way : class MyLoggingHTTPRequestHandler(BaseHTTPRequestHandler): def log_message(self, format, *args):

Re: Another MySQL Problem

2010-06-23 Thread Tapi
On Wed, 23 Jun 2010 10:46:37 -0430, Victor Subervi wrote: > On Wed, Jun 23, 2010 at 10:25 AM, Stephen Hansen > wrote: > >> On 6/23/10 6:45 AM, Victor Subervi wrote: >> > Hi; >> > I have this line: >> > >> > cursor.execute('select clientEmail from clients where client=%s', >> > (string.replace(c