I have an issue with Python .ASP pages :
 
I write .ASP pages using Python.
I have a shared module named pyutils which all pages import
 
A typical page starts like this:
----------------------------------------
import pyutils
pyutils.Response = Response
 
pyutils.print("hello","bye")
----------------------------------------
 
The pyutils module has a routine like this :
 
---------------------------------------
def print(args):
    for i in args:  Response.write(i)
---------------------------------------
 
Now here's the rub:
 
    If two users display a page at the same time, they share the
response object and both pages display garbled !
 
1)  Is this a bug ?
 
2)  How can I  structure my code when all users are sharing variables
in my imported modules ? !  Can I access the response object
of the module that calls pyutils from within pyutils ?
 
Best regards,
    Kari
 

Reply via email to