Part 2 - List of Pyroes *********************** Editing the name of a *Pyro* and having it automatically (or is it auto-magically?) in other elements is already a great thing. But a single *Pyro* would probably neither save the planet nor him/herself. That's why the other *Pyroes* come to the rescue and we need to be able to display a list with all the names to be able to choose which one will be edited. Copy the ``top1`` folder to ``top2`` and enter it. For example, with:: cp -r top1 top2 cd top2 .. note:: Under *Windows* and unless you have a proper shell installed (*Cygwin*, *MSYS*, *GitBash*, ...) you are probably better off using the *Windows Explorer* to make a copy of the directory) The List of Pyroes ================== To simplify our approach, we start by adding a ``mock_pyroes.html`` file to our project layout, where we will be holding our list, which will be acting as a database. The file structure and the new database-like Python code look like this. .. tabs:: .. code-tab:: bash File Layout ├── app │ ├── pyroes │ │ ├── __init__.py │ │ ├── pyroes_component.css │ │ ├── pyroes_component.html │ │ └── pyroes_component.py │ ├── __init__.py │ ├── app_component.css │ ├── app_component.html │ ├── app_component.py │ ├── app_module.py │ ├── mock_pyroes.py │ └── pyro.py ├── anpylar.js ├── index.html ├── package.json └── styles.css .. code-tab:: python mock_pyroes.py from .pyro import Pyro Pyroes = [Pyro(**x) for x in [ {'pyd': 11, 'name': 'Pyro Nakamura'}, {'pyd': 12, 'name': 'Mopynder Shuresh'}, {'pyd': 13, 'name': 'Pyter Pytrelli'}, {'pyd': 14, 'name': 'Angela Pytrelli'}, {'pyd': 15, 'name': 'Claire Pynnet'}, {'pyd': 16, 'name': 'Noah Pynnet'}, {'pyd': 17, 'name': 'Pysaac Mendez'}, {'pyd': 18, 'name': 'Pyki Sanders'}, {'pyd': 19, 'name': 'The Pytian'}, {'pyd': 20, 'name': 'Pylar'}] ] And here the new appearance of the ``PyroesComponent`` parts .. tabs:: .. code-tab:: html pyroes_component.html