def SecurityCheck(func):
 def Wrapper(request, *args, **kwargs):
  'Wrapping function.'
  if (WEBAUTH_MANAGER is None):
   raise RuntimeError('Attempt to initialize before WEBAUTH_MANAGER set.')
  return WEBAUTH_MANAGER.SecurityCheck(func, request, *args, **kwargs)
 return Wrapper

def SecurityCheck ( func ) : def Wrapper ( request , * args , ** kwargs ) : if ( WEBAUTH_MANAGER is None ) : raise RuntimeError ( 'Attempt to initialize before WEBAUTH_MANAGER set.' ) return WEBAUTH_MANAGER . SecurityCheck ( func , request , * args , ** kwargs ) return Wrapper
a decorator applied to protected web handlers .