Haha!
I got it!
To raise HTTPFound(location='/login') leads to servername root, but
To raise HTTPFound(location='login') leads correctly to tg's root !
Certainly it hides a bug somewhere... but about that problem in
particular, it just needs to modify the middleware.py in
tg.repoze.ext.who to :
if form_plugin is None:
from repoze.who.plugins.form import RedirectingFormPlugin
form = RedirectingFormPlugin('login', '/login_handler', '/
logout_handler',
rememberer_name='cookie')
Note I left the '/' on the 2 other parameters : there are not
accessible anymore when I remove it...
Another remark : repoze.who uses Paste's HTTPFound whereas the are
depreciated on the tg's side... maybe it will cause some issue some
day!
Anyway, I hope you'll find why it is different redirecting to "/login"
to "login"...
Cheers
Gus
On Sep 20, 10:45 am, GustaV <[EMAIL PROTECTED]> wrote:
> Any news?
>
> On Sep 18, 9:54 am, GustaV <[EMAIL PROTECTED]> wrote:
>
> > I wrote you an email with everything needed.
>
> > Actually there is not much to do :
> > - a quickstart project
> > - served under mod_wsgi, not at the root eg : "WSGIScriptAlias /test
> > C:/WSGIBugTest/test.wsgi" in apache.
> > - localhost/test/logout_handler redirects to localhost/login and
> > bug! : )
>
> > On Sep 17, 5:01 pm, "Mark Ramm" <[EMAIL PROTECTED]> wrote:
>
> > > If you could send me a minimal project that reproduces the problem,
> > > that would help quite a bit.
>
> > > --Mark
>
> > > On Tue, Sep 16, 2008 at 4:10 AM, GustaV <[EMAIL PROTECTED]> wrote:
>
> > > > Did you find something?
> > > > May I help in anything?
>
> > > > On Sep 12, 4:46 pm, "Mark Ramm" <[EMAIL PROTECTED]> wrote:
> > > >> > Mark,
>
> > > >> > even if I did not react in this thread yet I'm looking at it closely
> > > >> > because it reminds me of my problem to implement a SecureController
> > > >> > ...
> > > >> > I'll definitly look into it this week-end...
>
> > > >> > Florent.
>
> > > >> Thanks much. I've not had time to setup apache and mod-wsgi to test
> > > >> it locally. I'm very confused about what could be causing it,
> > > >> because it seems like the SCRIPT_NAME is being ignored somewhere, but
> > > >> I can't exactly figure out where that could be.
>
> > > >> --Mark
>
> > > --
> > > Mark Ramm-Christensen
> > > email: mark at compoundthinking dot com
> > > blog:www.compoundthinking.com/blog
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---