Re: [Repoze-dev] repoze.who and script_name

2009-02-11 Thread Gustavo Narea
Hello, Chris. On Wednesday February 11, 2009 02:07:35 Chris McDonough wrote: I don't understand.  Why would both a RedirectingFormPlugin and a FriendlyRedirectingFormPlugin be active in the same configuration?  I see that you've added the SCRIPT_NAME patch to the challenge method of the

Re: [Repoze-dev] repoze.who and script_name

2009-02-10 Thread Wichert Akkerman
Previously Tres Seaver wrote: There *is* no status code corresponding to log out. I don't think logging out can be done cleanly by middleware, fraknly: I think there should be a forgetCredentials API which the app calls when it knows that the user has requested a logout. Just like there

Re: [Repoze-dev] repoze.who and script_name

2009-02-10 Thread Gustavo Narea
On Monday February 9, 2009 18:24:55 Mark Ramm wrote: Yea, I think he's talking about SCRIPT_NAME. Not sure where the confusion comes from, but yea, I think his patch makes sense only if you replace SCRIPT_PATH with SCRIPT_NAME. Oh, right, I don't know how I made the same mistake twice! :-O

Re: [Repoze-dev] repoze.who and script_name

2009-02-10 Thread Gustavo Narea
On Monday February 9, 2009 21:34:43 Chris McDonough wrote: The thing you sent over a patch and a bugreport for is a plugin for repoze.who's RedirectingFormPlugin.  This plugin happens to ship with repoze.who itself (it's one of the default plugins), but TG2's what quickstart doesn't actually

Re: [Repoze-dev] repoze.who and script_name

2009-02-09 Thread Chris McDonough
Tres Seaver wrote: Chris McDonough wrote: FTR, I tried to apply the patch referenced in Lukasz' email to redirectingformplugin, but as I was doing that, I realized I don't know where SCRIPT_PATH is supposed to come from. It's not a CGI or WSGI envvar as far as I can tell and it's not in

Re: [Repoze-dev] repoze.who and script_name

2009-02-09 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris McDonough wrote: Tres Seaver wrote: Chris McDonough wrote: FTR, I tried to apply the patch referenced in Lukasz' email to redirectingformplugin, but as I was doing that, I realized I don't know where SCRIPT_PATH is supposed to come from.

Re: [Repoze-dev] repoze.who and script_name

2009-02-09 Thread Lukasz Szybalski
On Mon, Feb 9, 2009 at 11:24 AM, Mark Ramm mark.r...@gmail.com wrote: Yea, I think he's talking about SCRIPT_NAME. Not sure where the confusion comes from, but yea, I think his patch makes sense only if you replace SCRIPT_PATH with SCRIPT_NAME. You are correct Mark, not sure how I missed

Re: [Repoze-dev] repoze.who and script_name

2009-02-09 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lukasz Szybalski wrote: On Mon, Feb 9, 2009 at 11:24 AM, Mark Ramm mark.r...@gmail.com wrote: Yea, I think he's talking about SCRIPT_NAME. Not sure where the confusion comes from, but yea, I think his patch makes sense only if you replace

Re: [Repoze-dev] repoze.who and script_name

2009-02-09 Thread Lukasz Szybalski
On Mon, Feb 9, 2009 at 1:43 PM, Tres Seaver tsea...@palladion.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lukasz Szybalski wrote: On Mon, Feb 9, 2009 at 11:24 AM, Mark Ramm mark.r...@gmail.com wrote: Yea, I think he's talking about SCRIPT_NAME. Not sure where the confusion

Re: [Repoze-dev] repoze.who and script_name

2009-02-09 Thread Lukasz Szybalski
On Mon, Feb 9, 2009 at 2:34 PM, Chris McDonough chr...@plope.com wrote: Lukasz Szybalski wrote: I was under the assumption that both repoze.who and repoze.what_quickstart are part of the repoze packages, and therefore need to be updated to respect script_name. If that is incorrect, please

Re: [Repoze-dev] repoze.who and script_name

2009-02-08 Thread Lukasz Szybalski
On Fri, Feb 6, 2009 at 9:22 AM, Gustavo Narea m...@gustavonarea.net wrote: Hello, On Friday February 6, 2009 15:47:28 Chris McDonough wrote: Gustavo, don't you have a redirecting form plugin that already does this? Yes, I think it's the one he's using. It takes the SCRIPT_PATH into account