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(output)))]
    start_response(status, response_headers)
    return [output]

if  "__main__" == __name__ :
    e = ...
    r = ...
    print application(e,r)

what does e and r need to do some local python testing ?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to modwsgi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to