@auth.s3_requires_membership(1)
def ticket():
 import traceback
 from gluon.restricted import RestrictedError
 if (len(request.args) != 2):
  session.error = T('Invalid ticket')
  redirect(URL(r=request))
 app = request.args[0]
 ticket = request.args[1]
 e = RestrictedError()
 e.load(request, app, ticket)
 return dict(app=app, ticket=ticket, traceback=s3base.Traceback(e.traceback), code=e.code, layer=e.layer)

@ auth . s3_requires_membership ( 1 ) def ticket ( ) : import traceback from gluon . restricted import RestrictedError if ( len ( request . args ) != 2 ) : session . error = T ( 'Invalid ticket' ) redirect ( URL ( r = request ) ) app = request . args [ 0 ] ticket = request . args [ 1 ] e = RestrictedError ( ) e . load ( request , app , ticket ) return dict ( app = app , ticket = ticket , traceback = s3base . Traceback ( e . traceback ) , code = e . code , layer = e . layer )
ticket handler .