Migrate Lts/Tests module to Qt6 with Python 3 port

- Ported all Python scripts from Python 2 to Python 3
- Created db-manage.sh for PostgreSQL container management (14 commands)
- Updated compose-postgresql.yaml (container: legatus-postgresql, credentials: postgres/postgres)
- Created lts-cc.conf template for database configuration
- Added CMakeLists.txt with manual database initialization targets
- Created DEB packaging structure for 5 packages (sv, ws, aar, ltscc, licence)
- Copied ~48k lines of SQL files and XML symbol definitions
- Added documentation (README.md, README.python3.md, MIGRATION_REPORT)

Validation:
- PostgreSQL container starts successfully
- Database initialization tested (guez_pro created)
- Group 2 build: 97% tests passed (654/677)
This commit is contained in:
torsten committed 2026-11-20 17:28:17 +01:00
1 parent a5956caa1c
commit 15f7add351
21 files changed
+3892 -48

No files matched your search

@@ -0,0 +1,39 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 22 12:07:33 2021
@author: Filip Biedziak
Usage: guez_generate_js.py <csv file> <text file>
"""
#
# $Id$
# $HeadURL$
# $Author$
#
import sys
def toJson(assetBarcode, seBarcode):
string = ' exampleSocket.send(JSON.stringify({\n type: "mountTag",\n uuid: "UUID",\n data: {\n'
string += ' mountingPointTag: "' + assetBarcode + '",\n assetTag: "' + seBarcode + '"\n }\n }));\n'
return string
if __name__ == "__main__":
infile = sys.argv[1]
outfile = sys.argv[2]
strings = []
with open(infile, "r") as f:
lines = f.read().split("\n")
for line in lines[1:]:
if line == "":
continue
items = line.split(",")
if (len(items[1].replace('""','').strip()) == 0 or len(items[3].replace('""','').strip()) == 0):
continue
strings.append(toJson(items[1], items[3]))
with open(outfile, "w") as f:
f.write("function sendMountTags() {\n")
for s in strings:
f.write(s)
f.write("}")