Work on native gui. Display records and add missing tasks and measurements.
This commit is contained in:
@@ -23,7 +23,7 @@ class DbRecord:
|
||||
self.conn = db.conn
|
||||
self.last_update = None
|
||||
|
||||
self.title = _("DbRecord({})") # for pretty print
|
||||
self._title = _("DbRecord({})") # for pretty print
|
||||
|
||||
if record_id is not None:
|
||||
self.pk_value = int(record_id)
|
||||
@@ -142,7 +142,7 @@ class DbRecord:
|
||||
return True
|
||||
|
||||
def __str__(self):
|
||||
out = [self.title.format(self.pk_value)]
|
||||
out = [self._title.format(self.pk_value)]
|
||||
for field in self.fields:
|
||||
value = getattr(self, field, None)
|
||||
out.append(" {:15}: {}".format(field, value))
|
||||
|
||||
Reference in New Issue
Block a user