#NEWLINE# def get_info( self , chname , name , image , info ) : #NEWLINE# #INDENT# path = info . get ( 'path' , None ) #NEWLINE# future = info . get ( 'image_future' , None ) #NEWLINE# bnch = Bunch . Bunch ( CHNAME = chname , imname = name , path = path , image_future = future ) #NEWLINE# if ( image is not None ) : #NEWLINE# #INDENT# header = image . get_header ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# header = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# for ( hdr , key ) in self . columns : #NEWLINE# #INDENT# bnch [ key ] = str ( header . get ( key , 'N/A' ) ) #NEWLINE# #UNINDENT# bnch . NAME = name #NEWLINE# timestamp = info . time_modified #NEWLINE# if ( timestamp is not None ) : #NEWLINE# #INDENT# timestamp = timestamp . strftime ( '%Y-%m-%d %H:%M:%SZ' ) #NEWLINE# #UNINDENT# bnch . MODIFIED = timestamp #NEWLINE# return bnch