def ajax_render(self, style="html"): """Generates a 'rendering' of this item suitable for processing by JS for insert or removal from an existing UserList""" cells = [] for cell in self.cells: r = Wrapped.part_render(self, 'cell_type', cell) cells.append(spaceCompress(r)) return dict(cells=cells, id=self.type, name=self.name)