Guest User

Untitled

a guest
Nov 8th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. class Employee(...):
  2. Attributes:
  3. @type username: str
  4. ...
  5. @type password: str
  6. ...
  7.  
  8. class Database(...):
  9. Attributes:
  10. @type employees: dict {str : str}
  11. A dictionary of employees, using their names as keys, and their
  12. save path as the value.
  13.  
  14. def log_in(self, username, password):
  15. for e in self.employees:
  16. employee = dill.load(open(self.employees[e], "rb"))
  17. ...
  18. # Checks all employees in database, breaks when provided username &
  19. # password matches saved username & password
  20.  
  21. class LogInFrame(...):
  22. ...
  23. def __init__(self, db):
  24. # loads the database
  25. self.database = db
  26. ...
Add Comment
Please, Sign In to add comment