Commit 08168d37 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Display GSER in TC loaded from DB

parent 20d0d1c1
......@@ -116,7 +116,9 @@ class SQLTelecommands(TC):
print "No class", typename_sql, "found in", SQLTelecommands.dbname
self.widget = QtGui.QListWidget()
# Get the first 50 entries in the database
self.widget.addItems([str(x) for x in self.getPageIndexes(0, 50)])
self.widget.addItems(['{} ({})'.format(str(x),
for x in self.getPageIndexes(0, 50)])
# parent is the ASN.1 value editor
......@@ -143,7 +145,7 @@ class SQLTelecommands(TC):
def select(self, item):
''' Called when user clicks on a line of the table '''
# Get the ASN.1 value from the database (in native an1scc format)
native_asn1scc = self.sql2asn1(item.text())
native_asn1scc = self.sql2asn1(item.text().split()[0])
# native_asn1scc.PrintAll() available
python_var = self.parent.backend.fromASN1ToPyside(native_asn1scc)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment