#2114: Fix logout_handler to respect script path
-----------------------------------------------+----------------------------
 Reporter:  mramm                              |        Owner:  Gustavo 
     Type:  defect                             |       Status:  reopened
 Priority:  high                               |    Milestone:  2.0b4   
Component:  TurboGears                         |      Version:  trunk   
 Severity:  normal                             |   Resolution:          
 Keywords:  upstream, repoze.what.plugins.sql  |  
-----------------------------------------------+----------------------------
Comment (by Gustavo):

 Hello, Lucas.

 Replying to [comment:11 lszyba1]:
 > In the patch from the thread above "tg-patch-2114.diff" you seem to
 depend on the script name to be combined on tg side before it's passed
 into repoze.what.sql as final one url.

 Right.

 > Can we change the patch so that we somehow pass the script name to
 repoze.what, then url of the login/logut gets combined on repoze.what
 side.

 repoze.what has nothing to do with that -- it only deals with
 authorization.

 That patch seems like the best way to go to me, but unfortunately nobody
 seem to know why tg.url doesn't work there (or at least nobody has
 explained so). If I don't get help to get tg.url to work there, then my
 Option B is to modify repoze.who.plugins.form.RedirectingFormPlugin to
 make it accept an optional callable that returns the base URL for the
 current application which would be used to determine the login/out URLs --
 I can provide the patch but I'm not sure if Chris McDonough is going to
 apply it (I don't find this very elegant, to be honest).

 I'd rather deal with this in TG itself, but I need help.

 Cheers!

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2114#comment:12>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to