So will start to figure things out but can i ask a global overall
newbie python wsgi question :)
x = 1
def application(environ, start_response):
status = '200 OK'
global x
x = x + 1
output = str(x)
response_headers = [('Content-type', 'text/html'),('Content-
Length', str(len(
On Oct 7, 9:58 am, William Dode <[EMAIL PROTECTED]> wrote:
> On 06-10-2008, gert wrote:
>
> > On Oct 6, 11:48 pm, gert <[EMAIL PROTECTED]> wrote:
> >> Will this share connections between requests ?
>
> >> import _mysql
> >> db = _mysql.connect('127.0.0.1','root','root','www')
>
> >> def applicatio
2008/10/8 AchipA <[EMAIL PROTECTED]>:
>
> I'm fairly new to mod_wsgi so I'm not sure if I'm asking this at the
> right place... Is there a way to do some processing AFTER the
> connection to the client is closed ? For example, If I want to do a
> mail notification or database operation after all o
I'm fairly new to mod_wsgi so I'm not sure if I'm asking this at the
right place... Is there a way to do some processing AFTER the
connection to the client is closed ? For example, If I want to do a
mail notification or database operation after all of the output is
already available, it makes no s
This email is just to let you know I am not ignoring this. I am
actually on holiday at the moment and have been having trouble finding
time to have a good look at the problem.
BTW, is the Apache one you built yourself or prepackaged? I ask as by
default the symbol AP_DEBUG, to enable assertion ch
On 06-10-2008, gert wrote:
>
> On Oct 6, 11:48 pm, gert <[EMAIL PROTECTED]> wrote:
>> Will this share connections between requests ?
>>
>> import _mysql
>> db = _mysql.connect('127.0.0.1','root','root','www')
>>
>> def application(environ, start_response):
>> db.query("SELECT test FROM test")