def _format_listnodes(self, listnodes):
fields = list()<EOL>for name, node in listnodes:<EOL><INDENT>fields.append(('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'))<EOL>fields.append(('<STR_LIT>', '<STR_LIT>' % name, '<STR_LIT>', '<STR_LIT>'))<EOL>for link in node.get_links():<EOL><INDENT>linked_model = link['<STR_LIT>'](super_context)<EOL>null = self._marker_true if link['<STR_LIT:null>'] is True else self._marker_false<EOL>fields.append((self._nodelist_field_prefix, link['<STR_LIT>'],<EOL>'<STR_LIT>' % linked_model.title, null))<EOL><DEDENT>fields.extend(self._get_model_fields(node, self._nodelist_field_prefix))<EOL><DEDENT>return fields<EOL>
Format ListNodes and their fields into tuples that can be printed with _print_fields().