#NEWLINE# def get( self ) : #NEWLINE# #INDENT# ' worker ' #NEWLINE# nsdata = { #NEWLINE# #INDENT# 'nsname' : self . get_argument ( 'name' ) , #NEWLINE# 'profile_number' : int ( self . get_argument ( 'nsid' ) ) , #NEWLINE# 'ns_platform' : self . get_argument ( 'type' ) , #NEWLINE# #UNINDENT# } #NEWLINE# try : #NEWLINE# #INDENT# PGLOT . nodeservers . start_server ( ** nsdata ) #NEWLINE# self . send_json ( ) #NEWLINE# #UNINDENT# except ValueError as err : #NEWLINE# #INDENT# self . send_json ( message = err . args [ 0 ] , status = 400 )