List Info

Thread: Intercepting a static file request




Intercepting a static file request
user name
2006-09-22 15:40:52
thakadu wrote:
> I have a static filter on a directory. I would
> like to replace one of the files in that directory
> with a dynamic page WITHOUT changing the url.
> I also do not want to change the static page to a
> <meta-equiv......> redirect. So in short I am
> looking for some way to 'intercept' the request
> and instead of the static filter handling it,
> to handle it myself. Do I have to create a custom
> static filter to do this or is there an easier way?

Do you really mean "replace" or is there just a
URL in that path without a corresponding file? If the
latter, then you can "pass through" the request
to a handler (rather than "intercept" it); that
is, the CP 2.2 static filter (and CP 3 tools) are designed
so that, if they do not find a file, they pass and let
CherryPy continue processing normally.


Robert Brewer
System Architect
Amor Ministries
fumanchuamor.org


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )