Work on native gui code

This commit is contained in:
2026-07-16 15:18:21 +02:00
parent 3a8233e930
commit a92ff1a5de
4 changed files with 107 additions and 5 deletions
+4 -3
View File
@@ -5,12 +5,13 @@ import MySQLdb.cursors
class Vessel():
fields = ('vid', 'vtype', 'vesselname', 'model', 'loa', 'lwl',
'beam', 'draught', 'draught_min', 'displacement', 'ballast',
'beltpos_aft', 'beltpos_bow', 'shapefile', 'remarks')
def __init__(self, dbconn, vessel_id=None):
self.conn = dbconn
self.dcur = dbconn.cursor(MySQLdb.cursors.DictCursor)
self.fields = ('vid', 'vtype', 'vesselname', 'model', 'loa', 'lwl',
'beam', 'draught', 'draught_min', 'displacement', 'ballast',
'beltpos_aft', 'beltpos_bow', 'shapefile', 'remarks')
if vessel_id:
self.vid = long(vessel_id)
self.load()