#NEWLINE# def __init__( self , request , conf , app , logger ) : #NEWLINE# #INDENT# super ( StorletProxyHandler , self ) . __init__ ( request , conf , app , logger ) #NEWLINE# self . storlet_container = conf . get ( 'storlet_container' ) #NEWLINE# self . storlet_dependency = conf . get ( 'storlet_dependency' ) #NEWLINE# self . storlet_containers = [ self . storlet_container , self . storlet_dependency ] #NEWLINE# if ( not self . is_storlet_request ) : #NEWLINE# #INDENT# raise NotStorletRequest ( ) #NEWLINE# #UNINDENT# account_meta = get_account_info ( self . request . environ , self . app ) [ 'meta' ] #NEWLINE# storlets_enabled = account_meta . get ( 'storlet-enabled' , 'False' ) #NEWLINE# if ( not config_true_value ( storlets_enabled ) ) : #NEWLINE# #INDENT# self . logger . debug ( 'Account disabled for storlets' ) #NEWLINE# raise HTTPBadRequest ( 'Account disabled for storlets' , request = self . request ) #NEWLINE# #UNINDENT# if self . is_storlet_object_update : #NEWLINE# #INDENT# self . _validate_registration ( self . request ) #NEWLINE# raise NotStorletExecution ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _setup_gateway ( )