Adding the record list to the application
Now that we have a model capable of reading and updating data, and a RecordList
widget capable of displaying the contents of a file, we need to make changes to the rest of the application to enable everything to work together. Specifically, we'll have to do the following:
- We'll need to update the
DataRecordForm
to be suitable for updating existing records as well as adding new ones. - We'll need to update the layout of the
Application
window to accommodate the new record list. - We'll need to create new
Application
callbacks to handle loading records and navigating the application. - Finally, we'll need to update the main menu with new options for the added functionality.
Let's get started!
Modifying the record form for read and update
As long as we're still in views.py
, let's scroll up to look at our DataRecordForm
class and adjust it to make it capable of loading...