To achieve such behavior I've added some code in two places in gluon/
main.py:
is_local_user = request.client == request.env.http_host.split
(':')[0]
if is_local_user:
# redirecting to error ticket
return HTTP(303, error_message_ticket
% dict(ticket=ticket), Location="/admin/default/
ticket/%s"
% ticket).to(responder)
else:
# displaying error ticket url
return HTTP(http_error_status, error_message_ticket
% dict(ticket=ticket), web2py_error='ticket %s'
% ticket).to(responder)
On Aug 18, 11:44 am, sgtpep <[email protected]> wrote:
> Hi Massimo and all web2piers!
>
> Displaying a link to ticket on error for visitor is a very nice idea.
> But how about displaying full ticket with error traceback at once if
> the visitor is administrator. This will prevent me, developer, from
> clicking on ticket link every time the error occurs.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---