Redbrick User management tool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.6 KiB

  1. #-----------------------------------------------------------------------------#
  2. # MODULE DESCRIPTION #
  3. #-----------------------------------------------------------------------------#
  4. """RedBrick Options Module; contains RBOpt class."""
  5. #-----------------------------------------------------------------------------#
  6. # DATA #
  7. #-----------------------------------------------------------------------------#
  8. __version__ = '$Revision: 1.5 $'
  9. __author__ = 'Cillian Sharkey'
  10. #-----------------------------------------------------------------------------#
  11. # CLASSES #
  12. #-----------------------------------------------------------------------------#
  13. class RBOpt:
  14. """Class for storing options to be shared by modules"""
  15. def __init__(self):
  16. """Create new RBOpt object."""
  17. # Used by all modules.
  18. self.override = None
  19. # Used by useradm, RBUserDB & RBAccount.
  20. self.test = None
  21. # Used by useradm & rrs.
  22. self.mode = None
  23. self.setpasswd = None
  24. # Used by useradm.
  25. self.args = []
  26. self.help = None
  27. self.uid = None
  28. self.dbonly = None
  29. self.aconly = None
  30. self.updatedby = None
  31. self.newbie = None
  32. self.mailuser = None
  33. self.usertype = None
  34. self.cn = None
  35. self.altmail = None
  36. self.id = None
  37. self.course = None
  38. self.year = None
  39. self.yearsPaid = None
  40. self.birthday = None
  41. self.loginShell = None
  42. self.quiet = None
  43. self.rrslog = None
  44. self.presync = None
  45. # Used by rrs.
  46. self.action = None