#NEWLINE# def getCurrentVersion( ) : #NEWLINE# #INDENT# ' getCurrentVersion() -> int\n    Return the current version on VisTrails, return -1 if the GUI is not available\n    \n    ' #NEWLINE# builderWindow = getBuilderWindow ( ) #NEWLINE# if ( builderWindow != None ) : #NEWLINE# #INDENT# current_view = builderWindow . viewManager . currentWidget ( ) #NEWLINE# if ( current_view != None ) : #NEWLINE# #INDENT# return current_view . controller . current_version #NEWLINE# #UNINDENT# #UNINDENT# return ( - 1 )