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
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()