|
|
@ -1,12 +1,13 @@
|
|
|
|
#!/usr/bin/env python3
|
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
|
|
|
|
import configparser
|
|
|
|
import configparser
|
|
|
|
import lib.uis.config_ui # only follow -c flag
|
|
|
|
import sqlite3
|
|
|
|
import lib.Validator
|
|
|
|
|
|
|
|
import lib.sqlitedb
|
|
|
|
|
|
|
|
import lib.System
|
|
|
|
import lib.System
|
|
|
|
import lib.UserExceptions
|
|
|
|
import lib.UserExceptions
|
|
|
|
import sqlite3
|
|
|
|
import lib.Validator
|
|
|
|
|
|
|
|
import lib.sqlitedb
|
|
|
|
|
|
|
|
import lib.uis.config_ui # only follow -c flag
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
if __name__ == "__main__":
|
|
|
|
lib.uis.config_ui.argparser.description += " - Edit Tilde Users"
|
|
|
|
lib.uis.config_ui.argparser.description += " - Edit Tilde Users"
|
|
|
@ -35,7 +36,6 @@ if __name__ == "__main__":
|
|
|
|
args = ArgParser.parse_args()
|
|
|
|
args = ArgParser.parse_args()
|
|
|
|
config = configparser.ConfigParser()
|
|
|
|
config = configparser.ConfigParser()
|
|
|
|
config.read(args.config)
|
|
|
|
config.read(args.config)
|
|
|
|
try:
|
|
|
|
|
|
|
|
db = config['DEFAULT']['applications_db']
|
|
|
|
db = config['DEFAULT']['applications_db']
|
|
|
|
if not args.sshpubkey and not args.name and not args.username and not args.email and args.status is None \
|
|
|
|
if not args.sshpubkey and not args.name and not args.username and not args.email and args.status is None \
|
|
|
|
and not args.remove:
|
|
|
|
and not args.remove:
|
|
|
@ -145,5 +145,3 @@ if __name__ == "__main__":
|
|
|
|
exit(1)
|
|
|
|
exit(1)
|
|
|
|
print(f"Successfully changed '{args.user}'s status to 1 and created on the system.")
|
|
|
|
print(f"Successfully changed '{args.user}'s status to 1 and created on the system.")
|
|
|
|
exit(0)
|
|
|
|
exit(0)
|
|
|
|
except KeyboardInterrupt as e:
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|