On May 7, 4:54 pm, Oveek <[email protected]> wrote:
> Oops that should be:
>
> PATH_INFO = REQUEST_URI.replace(SCRIPT_NAME, "", 1)

Yes, I considered something like this, but REQUEST_URI is not required
by the WSGI spec so is not always present from all servers, so I could
not figure out a solution that would work across all servers.

A specific hack for a specific Apache installation would probably
work, and you're on the right track by either putting it in
Environator or elsewhere in the stack.

If you have a look at the methodhack code plugin I check in yesterday
I think you'll see a good model for how to add your own request filter
that does the right thing.

That's at:

http://github.com/tiddlyweb/tiddlyweb-plugins/blob/master/methodhack/methodhack.py

Essentially what is happening there is that another piece of
middleware is being added to the server_request_filters stack. Your
code would go in such a thing, modifying the environment before
calling the next handler in the stack.

If you get this working I'd love to see it. If you get it almost
working and have some questions, I should be able to help. Either ask
here, or in #tiddlyweb on freenode.

Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to