def make_auth_tkt_middleware(app, global_conf, secret=None, cookie_name='auth_tkt', secure=False, include_ip=True, logout_path=None):
 from paste.deploy.converters import asbool
 secure = asbool(secure)
 include_ip = asbool(include_ip)
 if (secret is None):
  secret = global_conf.get('secret')
 if (not secret):
  raise ValueError("You must provide a 'secret' (in global or local configuration)")
 return AuthTKTMiddleware(app, secret, cookie_name, secure, include_ip, (logout_path or None))

def make_auth_tkt_middleware ( app , global_conf , secret = None , cookie_name = 'auth_tkt' , secure = False , include_ip = True , logout_path = None ) : from paste . deploy . converters import asbool secure = asbool ( secure ) include_ip = asbool ( include_ip ) if ( secret is None ) : secret = global_conf . get ( 'secret' ) if ( not secret ) : raise ValueError ( "You must provide a 'secret' (in global or local configuration)" ) return AuthTKTMiddleware ( app , secret , cookie_name , secure , include_ip , ( logout_path or None ) )
creates the authtktmiddleware <class-paste .