#NEWLINE# def _get_and_set_local_file_modification_time( zk_path , command , watch_type ) : #NEWLINE# #INDENT# global _PATH_TO_DATA #NEWLINE# global _SERVERSET_METADATA #NEWLINE# local_file_path = _get_local_file_path_from_command ( command ) #NEWLINE# if ( not local_file_path ) : #NEWLINE# #INDENT# modification_timestamp = 0 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# modification_timestamp = os . path . getmtime ( _SERVERSET_METADATA ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# modification_timestamp = 0 #NEWLINE# #UNINDENT# #UNINDENT# if ( watch_type == 'serverset' ) : #NEWLINE# #INDENT# _SERVERSET_METADATA [ zk_path ] = { #NEWLINE# #INDENT# 'modification_timestamp' : modification_timestamp , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# _PATH_TO_DATA [ zk_path ] = { #NEWLINE# #INDENT# 'modification_timestamp' : modification_timestamp , #NEWLINE# #UNINDENT# }