#NEWLINE# @ classmethod #NEWLINE# def loadFromSource( cls ) : #NEWLINE# #INDENT# items = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# path = os . path . abspath ( __file__ ) #NEWLINE# dir_path = ( os . path . dirname ( path ) + '/' ) #NEWLINE# for i in open ( ( ( dir_path + '/' ) + cls . collectionSourceFile ) ) : #NEWLINE# #INDENT# item = i . strip ( ) . split ( ',' ) #NEWLINE# firstName = item [ 0 ] . lower ( ) #NEWLINE# if ( len ( item ) == 2 ) : #NEWLINE# #INDENT# item . append ( 'en' ) #NEWLINE# #UNINDENT# item = { #NEWLINE# #INDENT# item [ 2 ] : item [ 1 ] , #NEWLINE# #UNINDENT# } #NEWLINE# if ( firstName in items ) : #NEWLINE# #INDENT# items [ firstName ] = dict ( ( items [ firstName ] . items ( ) + item . items ( ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# items [ firstName ] = item #NEWLINE# #UNINDENT# #UNINDENT# return path