PEATSA/WebApp/Data.py
def logJobStates(self, file):
	
		'''Writes the state of all jobs to file as a pickled dictionary.
		
		This method is thread-safe. As a result it will block if another thread
		is already executing this method'''
	
		self.threadLock.acquire()
		stateDict = self.jobStates()
		stream = open(file, 'w+')
		pickler = pickle.Pickler(stream)
		pickler.dump(stateDict)
		stream.flush()
		stream.close()
		self.threadLock.release()
Writes the state of all jobs to file as a pickled dictionary.
		
		This method is thread-safe. As a result it will block if another thread
		is already executing this method
Writes the state of all jobs to file as a pickled dictionary.
This method is thread-safe. As a result it will block if another thread
is already executing this method
Writes the state of all jobs to file as a pickled dictionary . This method is thread - safe . As a result it will block if another thread is already executing this method
def logJobStates(self, file):
		self.threadLock.acquire()
		stateDict = self.jobStates()
		stream = open(file, 'w+')
		pickler = pickle.Pickler(stream)
		pickler.dump(stateDict)
		stream.flush()
		stream.close()
		self.threadLock.release()
def logJobStates ( self , file ) : self . threadLock . acquire ( ) stateDict = self . jobStates ( ) stream = open ( file , 'w+' ) pickler = pickle . Pickler ( stream ) pickler . dump ( stateDict ) stream . flush ( ) stream . close ( ) self . threadLock . release ( )
Writes the state of all jobs to file as a pickled dictionary.
Writes the state of all jobs to file as a pickled dictionary .
'''Writes the state of all jobs to file as a pickled dictionary.
		
		This method is thread-safe. As a result it will block if another thread
		is already executing this method'''
self
file