Re: mod_python and logging

2005-05-16 Thread Daniel Lichtenberger
Hi! Vinay Sajip wrote: > If you want to have multiple processes logging to the same file, the > standard Python logging module does not support interprocess > synchronisation directly. However, it is fairly easy to set up the > processes to log events to a socket, and a socket receiver can log >

mod_python and logging

2005-05-15 Thread Daniel Lichtenberger
Hi, I'm looking for a logging module to be used in a mod_python-powered website. Python 2.3's logging package seems like a good fit, however I'm not sure if it's completely safe to use it under high load. The library documentation states that it's thread-safe, but what about several forked apache

Re: questions concerning cgi.FieldStorage(keep_blank_values=1)

2005-02-20 Thread Daniel Lichtenberger
Jonas Meurer wrote: "key1" isn't a valid parameter, to supply an empty key you would write script.py?key1=&key2=foo Then cgi.FieldStorage also includes key1. great, it works. but is there no way to use single keywords as GET argument? You could manually parse the request string (CGI stores the requ

Re: questions concerning cgi.FieldStorage(keep_blank_values=1)

2005-02-20 Thread Daniel Lichtenberger
Hi, Jonas Meurer wrote: > if i request the script with script.py?key1&key2=foo, it will output: > list keys with form.keys(): > key2 > > any suggestions about how to make form.keys() contain the blank keys > as well? "key1" isn't a valid parameter, to supply an empty key you would write script.