On May 8, 3:23 am, "cd...@peermore.com" <chris.d...@gmail.com> wrote:
> On May 7, 4:54 pm, Oveek <mov...@gmail.com> 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.
Thread relevant to this discussion is:
http://groups.google.com/group/python-web-sig/browse_frm/thread/2003e1c1ecce27b2
Graham
> 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/...
>
> 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 TiddlyWikiDev@googlegroups.com
To unsubscribe from this group, send email to
tiddlywikidev+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---