#NEWLINE# def __init__( self , orm_user , settings , **kwargs ) : #NEWLINE# #INDENT# self . orm_user = orm_user #NEWLINE# self . settings = settings #NEWLINE# super ( ) . __init__ ( ** kwargs ) #NEWLINE# hub = self . db . query ( orm . Hub ) . first ( ) #NEWLINE# self . cookie_name = ( '%s-%s' % ( hub . server . cookie_name , quote ( self . name , safe = '' ) ) ) #NEWLINE# self . base_url = url_path_join ( self . settings . get ( 'base_url' , '/' ) , 'user' , self . escaped_name ) #NEWLINE# self . spawner = self . spawner_class ( user = self , db = self . db , hub = hub , authenticator = self . authenticator , config = self . settings . get ( 'config' ) )