Commit c4376192 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras
Browse files

Ready for reading from sql_db/db.info

parent 5dede6cb
......@@ -13,15 +13,16 @@
(c) 2016 European Space Agency
Author: Maxime Perrotin
Authors: Maxime Perrotin, Thanassis Tsiodras
'''
import sys
import os
from PySide.QtCore import (QObject, Signal, Slot, Qt, QRectF, QPointF, QPoint)
from PySide.QtGui import QDockWidget
__author__ = "Maxime Perrotin"
__author__ = "Maxime Perrotin, Thanassis Tsiodras"
__license__ = "LGPL"
__version__ = "1.0"
__url__ = "http://taste.tuxfamily.org"
......@@ -70,22 +71,27 @@ class TC(QDockWidget, QObject):
class SQLTelecommands(TC):
''' Handle Postgresql databases for telecommands '''
name = 'Get from db'
name = 'Get TCs from db'
session = None
def __init__(self, asn1_typename, parent=None, asn1_typename):
def __init__(self, asn1_typename, parent=None):
''' Initialise the widget '''
# to do here = create a table widget, and place all the entries
# of the given ASN.1 type
# Thanassis: please specify what data you need as parameters
# (I can provide the data type name, the database name...)
if SQLTelecommands.session is None:
SQLTelecommands.connectToDB()
@staticmethod
def connectToDB():
pass
@staticmethod
def applicable():
'''' check if there is a sql_db directory, return False otherwise '''
return True
return os.path.isdir("sql_db")
def getPageIndexes(self, offset, number):
# Thanasssis, please fill this one
# Thanassis, please fill this one
pass
def sql2asn1(self, idx):
......
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