Commit graph

83 commits

Author SHA1 Message Date
cd8fe5fed0 commit on querys 2019-10-16 14:33:17 +02:00
0718de20fb Let SQLite check for incorrect dates on timestamp row 2019-10-16 14:32:43 +02:00
2202af7826 Introduce imports, which comes with a new flag(--Import)
--Import depends on --file being present pointing to a valid CSV-file
that contains unique users with id's. When a user already exists
with his id, the script will fail.
It is also Backup.py-only which is reflected in the help message
2019-10-16 12:37:54 +02:00
c28e616ea5 Faster rebuildung by moving system relevant stuff up 2019-10-16 12:32:21 +02:00
e0efeee67d Better error handling, just hang a freakin' / to ssh_dir if it got screwed up 2019-10-13 22:44:30 +02:00
04d95c2d08 realign layout 2019-10-13 22:26:57 +02:00
43c7636920 Make PEP8 finally happy 2019-10-13 21:12:17 +02:00
290e72f159 Add various documentation to the System class and sqlitedb-Class...
... which are all written in rst-format, which sphynx understands and has
an own formal specification in  http://docutils.sourceforge.net/rst.html
2019-10-13 21:09:24 +02:00
d413662b36 Adds ability to delete users in db as well as on the system + type hints..
.... in function names for further documentation.
2019-10-13 18:49:38 +02:00
a6d63fee42 PEP8: One Import per line... -.-
Add TODO statements and foremost return False on error. Missed that
2019-10-13 17:54:24 +02:00
c43cad73fa Print Error messages to stderr instead of standard-out. Makes very much sense indeed! 2019-10-13 17:35:04 +02:00
89faf57b58 System: Still a lot @TODO here, but add it. Should(TM) work, but didn't
test it yet and also have to do a whole lot more. e.g. write out in dry-mode
which commands are getting to run in serious-mode but build up together
correctly in the correct order
2019-10-13 17:16:48 +02:00
2afb4c79a2 Implements a backup to csv. Uses StringIO because it has an own writer()
method, which is pretty nice to have when csv.writer() want's that on its
passed variable.

Also respects every flag yet introduced(-c, -f, -a, -u) and reuses the code
already written in ListUsers.py. It could be very nice to bring that code
into lib/ because it is probably needed way more often
2019-10-13 11:01:08 +02:00
90b2ee5236 add gitignore 2019-10-13 10:53:09 +02:00
a984b14c37 Implement -f/--file option. Defaults to stdout 2019-10-13 10:46:25 +02:00
4134e3cc2e introduces -f/--file, which outputs or takes from a file(conditional to the current program) 2019-10-13 10:46:10 +02:00
6e86bf11bb -a Flag: default false, do action on only approved users 2019-10-12 19:25:11 +02:00
c40ef4d40a Max username length is 16 now 2019-10-12 14:28:18 +02:00
cab4cd25a2 Well, that alternative view rocks hard... 2019-10-12 14:21:26 +02:00
b368ea058c huh, that already looks close to good... o.o 2019-10-12 13:57:38 +02:00
f06d4fa945 first steps towards real listings! 2019-10-12 13:34:01 +02:00
3915843943 introducing the -u flag, which turns on the 'unapproved' mode.
Oh, and just testing it in ListUsers.py :)
2019-10-12 12:26:16 +02:00
2eeeebdacb Add sceleton for listusers.py 2019-10-12 11:54:29 +02:00
96837cebe3 Externalize CFG-Handling into lib/CFG.py.
Never write this code again!
2019-10-12 11:39:19 +02:00
8ed215e89b Create sqlite3 connector class to handle all the errors and quirks for us 2019-10-12 11:38:43 +02:00
c4912502d7 Now with dynamic TILDE_CONF support! 2019-10-11 07:01:26 +02:00
79fb448f30 pep8-changes like before mostly 2019-10-11 06:40:32 +02:00
4d353e6804 Some PEP8 conform changes, noteably line breaks and too long lines and indendantion 2019-10-11 04:39:15 +02:00
4079166167 Respect $TILDE_CONF ENV in container build 2019-10-06 14:01:28 +02:00
e00e587fac Reflect changes made 2019-09-24 00:38:03 +02:00
93e846e775 Big restructure of all directories:
config regarding ssh-reg into ssh-reg repository,
config regarding ssh and logins itself into config/etc

administrate.py to private/
userapplications.py to public/
scripts to private/scripts/
2019-09-23 23:17:21 +02:00
3971ed88e8 Introduce TILDE_CONF environment variable 2019-09-20 15:35:35 +02:00
n1trux
e5aae6bdc3 initial commit 2019-08-15 14:06:07 +02:00