#NEWLINE# def __init__( self , ofattribs ) : #NEWLINE# #INDENT# Folder . __init__ ( self , name = ofattribs [ 'name' ] ) #NEWLINE# self . ofattribs = ofattribs #NEWLINE# self . order = ofattribs [ 'rank' ] #NEWLINE# if ( 'persistentIdentifier' in ofattribs ) : #NEWLINE# #INDENT# self . id = ofattribs [ 'persistentIdentifier' ] #NEWLINE# self . link = ( 'omnifocus:///folder/' + ofattribs [ 'persistentIdentifier' ] ) #NEWLINE# #UNINDENT# logger . debug ( 'loaded folder: %s %s' , self . id , self . name )