#NEWLINE# def get_version_from_recent_files( self ) : #NEWLINE# #INDENT# 'It will try to create a\n        :class:`~oyProjectManager.models.version.Version` instance by looking\n        at the recent files list.\n\n        It will return None if it can not find one.\n\n        :return: :class:`~oyProjectManager.models.version.Version`\n        ' #NEWLINE# version = None #NEWLINE# rfm = RecentFileManager ( ) #NEWLINE# try : #NEWLINE# #INDENT# recent_files = rfm [ self . name ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# logger . debug ( 'no recent files' ) #NEWLINE# recent_files = None #NEWLINE# #UNINDENT# if ( recent_files is not None ) : #NEWLINE# #INDENT# for i in range ( len ( recent_files ) ) : #NEWLINE# #INDENT# version = self . get_version_from_full_path ( recent_files [ i ] ) #NEWLINE# if ( version is not None ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# logger . debug ( ( 'version from recent files is: %s' % version ) ) #NEWLINE# #UNINDENT# return version