def entry_list_list(options):
 with Session() as session:
  try:
   entry_list = get_list_by_exact_name(options.list_name, session=session)
  except NoResultFound:
   console(u'Could not find entry list with name {}'.format(options.list_name))
   return
  header = [u'#', u'Title', u'# of fields']
  table_data = [header]
  for entry in get_entries_by_list_id(entry_list.id, order_by=u'added', descending=True, session=session):
   table_data.append([entry.id, entry.title, len(entry.entry)])
 try:
  table = TerminalTable(options.table_type, table_data)
  console(table.output)
 except TerminalTableError as e:
  console((u'ERROR: %s' % str(e)))

def entry_list_list ( options ) : with Session ( ) as session : try : entry_list = get_list_by_exact_name ( options . list_name , session = session ) except NoResultFound : console ( u'Could not find entry list with name {}' . format ( options . list_name ) ) return header = [ u'#' , u'Title' , u'# of fields' ] table_data = [ header ] for entry in get_entries_by_list_id ( entry_list . id , order_by = u'added' , descending = True , session = session ) : table_data . append ( [ entry . id , entry . title , len ( entry . entry ) ] ) try : table = TerminalTable ( options . table_type , table_data ) console ( table . output ) except TerminalTableError as e : console ( ( u'ERROR: %s' % str ( e ) ) )
list entry list .