#NEWLINE# def __init__( self , configuration ) : #NEWLINE# #INDENT# self . configuration = configuration #NEWLINE# config = json . loads ( ( configuration or '{}' ) ) #NEWLINE# self . web = config . get ( 'web' ) #NEWLINE# self . name = config . get ( 'web_name' ) #NEWLINE# self . height = config . get ( 'height' ) #NEWLINE# self . translation_url = config . get ( 'translation_url' ) #NEWLINE# if ( ( not self . web ) or ( not self . name ) ) : #NEWLINE# #INDENT# raise Exception ( ( 'Laboratory misconfigured: fields missing: %s' % configuration ) )