2008/10/6 gert <[EMAIL PROTECTED]>:
>
> But how would you launch a mysql connection so i can do
>
> loc = threading.local()
> db = loc.db
> db.execute("SELECT * FROM Graham",())
>
> when WSGIApplicationGroup %{GLOBAL} is set

At a guess, something like:

  import threading

  local = threading.local()

  def application(.....):

      try:
        db = local.db
      except:
        db = local.db = <stuff to create connection>

      db.execute("SELECT documentation FROM manual",())

Graham

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
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