Native gui first steps: storage, box and companies are editable
This commit is contained in:
1 parent
1eea4058bf
commit
06a9834688
47 files changed
+3119
-883
No files matched your search
+6
-2
@@ -105,6 +105,10 @@ class StatusView:
|
||||
print("No centerline with id='centerline' found!")
|
||||
|
||||
def on_drw_status_draw(self, area, cr):
|
||||
if self.context.vessel.pk_value is None:
|
||||
# no vessel defined
|
||||
return
|
||||
|
||||
cr.set_source_rgb(0.92, 0.97, 1.0)
|
||||
cr.paint()
|
||||
|
||||
@@ -136,9 +140,9 @@ class StatusView:
|
||||
# Detect all tables in database
|
||||
sql= ("SELECT table_name "
|
||||
"FROM information_schema.tables "
|
||||
"WHERE table_schema='yms' AND table_type='BASE TABLE' "
|
||||
"WHERE table_schema=%s AND table_type='BASE TABLE' "
|
||||
"ORDER BY table_name")
|
||||
self.context.db.cur.execute(sql)
|
||||
self.context.db.cur.execute(sql, (self.context.db.schema,))
|
||||
tables = [row[0] for row in self.context.db.cur.fetchall()]
|
||||
# Loop over tables and get current record count
|
||||
records = []
|
||||
|
||||
Reference in new issue
Block a user