Esempio n. 1
0
 def _is_registered(self):
     sql = SQL()
     sql._query_("SELECT user, password FROM user WHERE user_id = '" + str(self.uid) + "'")
     data = sql.get_last_result()
     if data is not None:
         return True
     return False
Esempio n. 2
0
 def show_grades(self):
     sql = SQL()
     sql._query_("SELECT user, password FROM user WHERE user_id = '" + str(self.uid) + "'")
     data = sql.get_last_result()
     self.sii.set_userdata(data['user'], data['password'])
     return self.sii.get_grades()