def __init__(self):
     self.MyDb = my_db.MyDb()
     self.sql = ""
     if self.MyDb.exit_of_table('template'):
         self.template = 'template'
     else:
         self.template = 'template_copy'
Пример #2
0
 def __init__(self):
     self.MyDb = my_db.MyDb()
     self.sql = ""
     self.data_list = []
     if self.MyDb.exit_of_table('job'):
         self.job = 'job'
     else:
         self.job = 'job_copy'
Пример #3
0
 def __init__(self):
     self.MyDb = my_db.MyDb()
     self.sql_empty_job = ""
     self.sql_empty_template = ""
     if self.MyDb.exit_of_table('job'):
         globalVal.TABLE_0 = 'job_copy'
         globalVal.TABLE_1 = 'template_copy'
         globalVal.TABLE_2 = 'job'
         globalVal.TABLE_3 = 'template'
     else:
         globalVal.TABLE_0 = 'job'
         globalVal.TABLE_1 = 'template'
         globalVal.TABLE_2 = 'job_copy'
         globalVal.TABLE_3 = 'template_copy'
Пример #4
0
 def __init__(self):
     self.MyDb = my_db.MyDb()
     self.sql = ""
Пример #5
0
 def __init__(self):
     self.MyDb = my_db.MyDb()
     self.sql_empty_job = ""
     self.sql_empty_template = ""