Hello,
(I knew I should probably use trac and fill this as
bugreport, but I
haven't found a login)
I found myself unable to use custom dispatcher at
application root in
any way.
I have one application at /, second at /app. I'd like app to
attach
dispatcher to both / and /app, which will redirect request
with
certain headers to /app/index and handling rest normally.
Problem is, that clients are asking for /app?s=blahblah (and
I cannot
change it), instead of /app/?s=blahblah. Application at
mount point /
app is recognized (thus dipatcher on / has no effect), and
thus
path_info is empty string. Thus, request.get_resource() has
no chance
for loading proper dispatcher (because of while path_info
chunk).
Quick hack is to add
if not trail:
tail = '/'
before while cycle. This allows root dispatcher to be
resolved.
Or am I something missing and there is some other obvious
solution
(which do not require us to patch cherrypy)?
Thanks,
Almad
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|