Roundup Tracker - Issues

Message5696

Author rouilj
Recipients ber, ezio.melotti, rouilj
Date 2016-07-01.03:07:38
Message-id <1467342458.92.0.754453756393.issue2550785@psf.upfronthosting.co.za>
In-reply-to
Well here is some smarter tal.

    <tal:if tal:condition="exists:request/env/QUERY_STRING">
       <input
tal:condition="python:request.env['QUERY_STRING'].find('@action=logout')
== -1"
	      type="hidden" name="__came_from"
	      tal:attributes="value
	     
string:${request/base}${request/env/PATH_INFO}?${request/env/QUERY_STRING}">
       <input
tal:condition="python:request.env['QUERY_STRING'].find('@action=logout')
!= -1"
	      type="hidden" name="__came_from"
	      tal:attributes="value
	      string:${request/base}${request/env/PATH_INFO}">
    </tal:if>
    <input type="hidden" name="__came_from"
	   tal:condition="not:exists:request/env/QUERY_STRING"
	   tal:attributes="value string:${request/base}${request/env/PATH_INFO}">


it looses the page you are on when you login after logging out,
but I figure it serves you right for logging out of roundup 8-).

Anybody want to try this code?
History
Date User Action Args
2016-07-01 03:07:38rouiljsetmessageid: <1467342458.92.0.754453756393.issue2550785@psf.upfronthosting.co.za>
2016-07-01 03:07:38rouiljsetrecipients: + rouilj, ber, ezio.melotti
2016-07-01 03:07:38rouiljlinkissue2550785 messages
2016-07-01 03:07:38rouiljcreate