def _get_folder_info(folder):
 folder_info = ''
 if (folder and folder.parent):
  folder_info = _get_folder_info(folder.parent)
  folder_info += (' %s %s' % (folder.name.replace('Unnamed folder', ''), (folder.description or '')))
 return folder_info

def _get_folder_info ( folder ) : folder_info = '' if ( folder and folder . parent ) : folder_info = _get_folder_info ( folder . parent ) folder_info += ( ' %s %s' % ( folder . name . replace ( 'Unnamed folder' , '' ) , ( folder . description or '' ) ) ) return folder_info
get names and descriptions for all parent folders except top level .