May 2018
Beginner to intermediate
452 pages
11h 26m
English
Next, we need to fix our open_record() method. It takes a rownum currently, but we no longer have row numbers; we have date, time, lab, and plot.
To reflect this, replace all instances of rownum with rowkey:
def open_record(self, rowkey=None):
if rowkey is None:
# ...etc
Finally, expand rowkey in the get_record() call, since it expects four positional arguments:
record = self.data_model.get_record(*rowkey)