def __init__(self, userID, password, name, email, pID, account, schedule):
     User.__init__(self, userID, password)
     self.pName = name
     self.pEmail = email
     self.pID = pID
     self.pAccount = account
     self.schedule = schedule
Exemplo n.º 2
0
 def __init__(self, id, username, email, password_hash, picture_url,
              personal_message, facebook_url, twitter_url, birth_date,
              friends, creation_date):
     User.__init__(self, id, username, email, password_hash, picture_url,
                   personal_message, facebook_url, twitter_url, birth_date,
                   friends, creation_date)
     self.is_premium = 1
Exemplo n.º 3
0
    def __init__(self, nickname, password, email, country, name1, name2,
                 last_name1, last_name2, baneado_s_n, avatar: Avatar):
        self.baneado_s_n: bool = baneado_s_n
        self.avatar: Avatar = avatar

        User.__init__(self, nickname, password, email, country, name1, name2,
                      last_name1, last_name2)
Exemplo n.º 4
0
 def __init__(self, id, pwd, name, lastname, phone, idDoc, vehicleType,
              plate, state, dateTime):
     User.__init__(self, id, pwd, name, lastname, phone, idDoc)
     self.vehicleType = vehicleType
     self.plate = plate
     self.state = state
     self.dateTime = dateTime
Exemplo n.º 5
0
 def __init__(self, userID, password, name, email, idNum, desc):
     User.__init__(self, userID, password)
     self.studentName = name
     self.sEmail = email
     self.idNum = idNum
     self.desc = desc
     self.form = None
     self.consultList = {}
Exemplo n.º 6
0
    def new_user(self):

        user_input = None
        #creates a user instance.
        main_user = User()
        item_date = DateClass()
        #checks if there is there existing data files.
        checker = main_user.checkFile()
        #creates new data file if no datafile is found.
        if (checker == False):
            name = main_user.string_question("What is your full name?")
            birth_day = main_user.string_question(
                "enter your birth date (ex: 01/01/2000):")
            main_user.__init__(name, birth_day)
            main_user.createFile()

            self.new_user()
            #set my account can be used, recently added that method on User class

        elif (checker == True):
            while (user_input != 0):

                user_input = self.menu_display()
                if (user_input == 1):
                    #printing all the data stored in the file.
                    main_user.readData()
                    input("\nPress enter to continue")
                elif (user_input == 2):
                    main_user.add_transaction()
                    #add the total
                elif (user_input == 3):
                    main_user.userInfo()
                    input("\nPress enter to continue")
                elif (user_input == 4):
                    #rounding decimal points to two
                    print("total expenses: ",
                          round(main_user.total_expenses(), 2))
                    input("\nPress enter to continue")
        else:
            print("Invalid input")
Exemplo n.º 7
0
 def __init__(self, nickname, password, email, country, name1, name2, last_name1, last_name2):
     User.__init__(self, nickname, password, email, country, name1, name2, last_name1, last_name2)
Exemplo n.º 8
0
 def __init__(self, id):
     User.__init__(self, id)
     self.rMin = 10
     self.dMax = 10
     self.packetSize = 120
Exemplo n.º 9
0
 def __init__(self, name, license):
     User.__init__(self, name)
     self.license = license
Exemplo n.º 10
0
 def __init__(self, name, pw, em, phone, q, a):
     User.__init__(self, name, pw, em, phone, q, a)
     self.cart = Cart(name)
Exemplo n.º 11
0
 def __init__(self, email, first_name, last_name):
     User.__init__(self, email, first_name, last_name, 'admin')
Exemplo n.º 12
0
 def __init__(self, manager=None, name=None, password=None):
     User.__init__(self, manager, name, password)
     self._roles = []
     self._rolesByName = {}
Exemplo n.º 13
0
 def __init__(self, manager=None, name=None, password=None):
     User.__init__(self, manager, name, password)
     self._roles = []
     self._rolesByName = {}
Exemplo n.º 14
0
 def __init__(self, name, pw, em, phone=None):
     User.__init__(self, name, pw, em, phone)
Exemplo n.º 15
0
 def __init__(self, userID, password, adminName, email):
     User.__init__(self, userID, password)
     self.adminName = adminName
     self.adminEmail = email