#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# self . debug = False #NEWLINE# self . db = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . store = join ( abspath ( sublime . packages_path ( ) ) , 'Settings' , 'orgmode-store.bin.gz' ) #NEWLINE# try : #NEWLINE# #INDENT# makedirs ( dirname ( self . store ) ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# with GzipFile ( self . store , 'rb' ) as f : #NEWLINE# #INDENT# self . db = load ( f ) #NEWLINE# #UNINDENT# #UNINDENT# except : #NEWLINE# #INDENT# self . db = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# self . on_load ( sublime . active_window ( ) . active_view ( ) ) #NEWLINE# for window in sublime . windows ( ) : #NEWLINE# #INDENT# self . on_load ( window . active_view ( ) )