#NEWLINE# def turbulenz_engine_version( engine_version ) : #NEWLINE# #INDENT# query = turbulenz_api ( plugin_data ) #NEWLINE# plugin_data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if query . get ( 'ok' , False ) : #NEWLINE# #INDENT# data = query . get ( 'data' , None ) #NEWLINE# if data : #NEWLINE# #INDENT# os_list = [ 'Windows' , 'Mac' , 'Linux' ] #NEWLINE# for o in os_list : #NEWLINE# #INDENT# this_os = data [ o ] #NEWLINE# latest_plugin_version = this_os [ 'latest' ] #NEWLINE# all_versions = this_os [ 'versions' ] #NEWLINE# if all_versions : #NEWLINE# #INDENT# latest_plugin_link = all_versions [ latest_plugin_version ] [ 'file' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# latest_plugin_link = '' #NEWLINE# latest_plugin_version = '' #NEWLINE# #UNINDENT# os_data = { #NEWLINE# #INDENT# 'newest' : latest_plugin_version , #NEWLINE# 'download' : latest_plugin_link , #NEWLINE# #UNINDENT# } #NEWLINE# plugin_data [ o ] = os_data #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return plugin_data