Minor change for release in information page

This commit is contained in:
Silvan Calarco 2011-07-09 17:40:31 +02:00
parent 81e09a4d56
commit 0159b89194

View File

@ -97,7 +97,7 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon):
v = open(path, 'r') v = open(path, 'r')
version = v.read() version = v.read()
a = self.FormattaInfo() a = self.FormattaInfo()
version = "<ul><li>"+_("<font color=\"green\">open</font>mamba version:")+" <i>"+a[0]+"</i><li>"+_("Platform: ")+"<i>"+a[1]+"</i></ul>" version = "<ul><li>"+_("<font color=\"green\">open</font>mamba release:")+" <i>"+a[0]+"</i><li>"+_("Platform: ")+"<i>"+a[1]+"</i></ul>"
v.close() v.close()
else: else:
version = "Error: Unable to find /etc/openmamba-release" version = "Error: Unable to find /etc/openmamba-release"
@ -110,9 +110,9 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon):
def FormattaInfo(self): def FormattaInfo(self):
result = [] result = []
v = version v = version
#result[0]=versione #result[0]=versione
result.append(v[ v.find("openmamba ")+10 : v.find(" for") ] + " " + v[ v.find("(") : v.find(")")+1 ]) result.append(v[ v.find("openmamba release ")+18 : v.find(" for") ] + " " + v[ v.find("(") : v.find(")")+1 ])
#result[1] = piattaforma #result[1] = piattaforma
result.append(v[ v.find("for")+4 : v.find("(") ]) result.append(v[ v.find("for")+4 : v.find("(") ])
return result return result