parameters: ()
return_statement: 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)
docstring: Ticket handler
docstring_summary: Ticket handler
docstring_tokens: Ticket handler
function: def ticket():
      """ Ticket handler """
  
      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()
      e.load(request, app, ticket)
  
      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)
function_tokens: def ticket ( ) : 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 ( ) e . load ( request , app , ticket ) 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 )