[mod_python] Which hadler to use (was: Protecting Image-Directory's with PythonAccessHandler)

Maksim Kasimov maksim.kasimov at gmail.com
Mon Dec 25 08:32:16 EST 2006


Hi,

i have similar problem as was posted earlier "Protecting Image-Directory's
with PythonAccessHandler" - i need to allow users to load content (images,
audio, games ...)

doing that, i make the decision using information stored in Request object
(headers: User-Agent, client IP and some prameters in query string).

For example, url can looks like this:
         http://myserver.com/download.py/1234567890
         (1234567890 - is the key, that must be converted to an actual file
name if it's allowed)

all information that needed, available from all handlers - as i can see,
Request do not mutate when passing through all handlers (i might be wrong)

my question is: which handler to use( PythonInitHandler,
PythonPostReadRequestHandler, PythonHeaderParserHandler, PythonTransHandler
or PythonAccessHandler as was mentioned in "Protecting Image-Directory's
with PythonAccessHandler" thread) ?

Are there some rules on how to correctly choose Python*Handler (at least in
my case)?


thanks for any help.


mod_python-3.2.10
apache-2.0.59

-- 
Maksim Kasimov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20061225/064d7113/attachment.html


More information about the Mod_python mailing list