#NEWLINE# @ ComputedGraph . Function #NEWLINE# def setValueSlot( self , newValue ) : #NEWLINE# #INDENT# logging . info ( 'Setting %s %s' , str ( newValue ) , newValue ) #NEWLINE# if ( not self . keyspace . loaded ) : #NEWLINE# #INDENT# if ( SynchronousPropertyAccess . SynchronousPropertyAccess . getCurrent ( ) is not None ) : #NEWLINE# #INDENT# self . keyspace . waitLoaded ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# logging . info ( 'raising NotLoadedException for %s' , self ) #NEWLINE# raise NotLoadedException ( self . keyspace ) #NEWLINE# #UNINDENT# #UNINDENT# if ( newValue is None ) : #NEWLINE# #INDENT# SharedStateSynchronizer . getSynchronizer ( ) . writeValue ( self . keyspace . keyspaceName , self . keyName , None ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert isinstance ( newValue , tuple ) #NEWLINE# assert ( len ( newValue ) == 1 ) #NEWLINE# try : #NEWLINE# #INDENT# SharedStateSynchronizer . getSynchronizer ( ) . writeValue ( self . keyspace . keyspaceName , self . keyName , JsonPickle . toJson ( newValue [ 0 ] ) ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# logging . error ( '%s' , traceback . format_exc ( ) ) #NEWLINE# raise #NEWLINE# #UNINDENT# #UNINDENT# self . value_ = newValue