#NEWLINE# def __getstate__( self ) : #NEWLINE# #INDENT# state = { #NEWLINE# #INDENT# 'server' : self . server . hostname , #NEWLINE# 'app' : self . app . name , #NEWLINE# 'pid' : self . info . get ( 'pid' , 0 ) , #NEWLINE# 'inode' : self . info . get ( 'inode' , 0 ) , #NEWLINE# 'version' : self . version , #NEWLINE# 'label' : self . label , #NEWLINE# 'shouldBeRunning' : self . shouldBeRunning , #NEWLINE# 'enabled' : self . enabled , #NEWLINE# 'running' : self . running , #NEWLINE# 'info' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# for ( attr , val ) in self . info . items ( ) : #NEWLINE# #INDENT# if ( attr in ( 'pid' , 'inode' , 'enabled' ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# state [ 'info' ] [ attr ] = val #NEWLINE# #UNINDENT# return state