def ticketdb():
 if (len(request.args) != 2):
  session.flash = T('invalid ticket')
  redirect(URL('site'))
 app = get_app()
 myversion = request.env.web2py_version
 ticket = request.args[1]
 e = RestrictedError()
 request.tickets_db = get_ticket_storage(app)[0]
 e.load(request, app, ticket)
 response.view = 'default/ticket.html'
 return dict(app=app, ticket=ticket, output=e.output, traceback=(e.traceback and TRACEBACK(e.traceback)), snapshot=e.snapshot, code=e.code, layer=e.layer, myversion=myversion)

def ticketdb ( ) : if ( len ( request . args ) != 2 ) : session . flash = T ( 'invalid ticket' ) redirect ( URL ( 'site' ) ) app = get_app ( ) myversion = request . env . web2py_version ticket = request . args [ 1 ] e = RestrictedError ( ) request . tickets_db = get_ticket_storage ( app ) [ 0 ] e . load ( request , app , ticket ) response . view = 'default/ticket.html' return dict ( app = app , ticket = ticket , output = e . output , traceback = ( e . traceback and TRACEBACK ( e . traceback ) ) , snapshot = e . snapshot , code = e . code , layer = e . layer , myversion = myversion )
ticket handler .