diff --git a/gui/utils/exportHtml.py b/gui/utils/exportHtml.py
index c9561ec66..287495c14 100644
--- a/gui/utils/exportHtml.py
+++ b/gui/utils/exportHtml.py
@@ -12,9 +12,11 @@ class exportHtml():
return cls._instance
def __init__(self):
+ print "init exportHtml()"
self.thread = exportHtmlThread()
def refreshFittingHTMl(self):
+ print "refresh HTML"
settings = service.settings.HTMLExportSettings.getInstance()
if (settings.getEnabled()):
@@ -32,6 +34,7 @@ class exportHtmlThread(threading.Thread):
self.stopRunning = True
def run(self):
+ print "run"
# wait 1 second just in case a lot of modifications get made
time.sleep(1);
if self.stopRunning:
@@ -47,9 +50,50 @@ class exportHtmlThread(threading.Thread):
My Page
-
-
-
+
+
+
+
@@ -58,25 +102,34 @@ class exportHtmlThread(threading.Thread):
"""
-
- HTML += '
';
+ HTML += '
';
categoryList = [];
self.categoryList = list(sMarket.getShipRoot())
self.categoryList.sort(key=lambda ship: ship.name)
for shipType in self.categoryList:
+ HTMLgroup = (
+ '
\n'
+ '\t
' + shipType.groupName + '
\n'
+ '\t
\n')
ships = sMarket.getShipList(shipType.ID)
for ship in ships:
- HTMLship = '
' + ship.name + '
'
+ HTMLship = (
+ '\t\t
\n'
+ '\t\t
' + ship.name + '
\n'
+ '\t\t\t
\n')
fits = sFit.getFitsWithShip(ship.ID)
for fit in fits:
if self.stopRunning:
return;
dnaFit = sFit.exportDna(fit[0])
- HTMLship += "