def __init__(self): self.choice = connection() self.name = None self.first = None self.pseudo = None self.email = None self.age = None self.password = None
def __init__(self): self.log = connection() self.pseudo = None self.password = None self.p = None self.pwd = None self.pseudo_ok = None self.password_ok = None self.pseudo_password = False
def __init__(self): self.choice = connection() self.pseudo = None self.password = None self.p = None self.pwd = None self.count = None self.pseudo_ok = None self.password_ok = None self.pseudo_password = False
def __init__(self): self.choice = connection()
def __init__(self, pseudo): self.user_choice = connection() self.pseudo = pseudo
import sys from model.connection import * from controller.user_account_space import * from model.connec_account import * from model.create_account import * from controller.verify import * """test for verify if connect to bbd is ok """ test = connection() test.initialize_connection() test.close_connection() if __name__=='__main__': user_choice = "" account_choice = "" while user_choice != "q": user_choice = input("choice (c) to connect at your account or (w) for create an account:") if user_choice == "q": print("close ") sys.exit() if user_choice == "w": choice = Create() choice.create_user() if user_choice == "c": choice = Connect() choice.connect_user()
def connection(): answer = model.connection() return jsonify({"answer": answer})