durusmail: quixote-users: request.environ/os.environ bug?
request.environ/os.environ bug?
request.environ/os.environ bug?
Andreas Kostyrka
2002-07-31
Hi!

I'm running Apache/Linux. I've got a problem:

In my application module I have class that provides some graphics.
(Actually, it's a class that accesses the filesystem using _q_getname)

files=StaticDirectory("static/")

Now, somewhere down the hierarchy, I want to generate an URL for an IMG
tag:

'' % \
        request.environ.get("SCRIPT_NAME","")

against os.environ SCRIPT_NAME contains the correct information.
request.environ on the other hand does not have the informations needed
anymore:


Especially I've noticed that PATH_INFO is ''. So how do I find out the
url of the exported module?

Andreas



reply