Commit graph

179 commits

Author SHA1 Message Date
Benjamin Renard
c77f9e5674 PgSQL: fix quoting table name with schema prefix 2021-11-07 21:57:00 +01:00
Benjamin Renard
6b825813c1 PgSQL: code cleaning 2021-11-07 21:37:18 +01:00
Benjamin Renard
86be381db9 Add some unit tests on config lib 2021-11-06 15:36:51 +01:00
Benjamin Renard
94ed2e50fd config.BooleanOption: change default argument name to add enable/disable 2021-11-06 15:15:03 +01:00
Benjamin Renard
f8d78f6fe2 config.BaseOption: add no_arg parameter 2021-11-06 15:14:06 +01:00
Benjamin Renard
73c19816f7 LdapClient: add support to config lib 2021-11-03 17:41:15 +01:00
Benjamin Renard
dc0f17dd20 Add config lib 2021-11-03 17:38:31 +01:00
Benjamin Renard
439a1e9b33 tests: fix some pylint warnings & errors 2021-11-03 17:06:37 +01:00
Benjamin Renard
9d611284ef PgDB._add_where_clauses: Fix handling fields already in params 2021-11-03 17:04:58 +01:00
Benjamin Renard
afe54819bb Improve PgDB class and add unit tests 2021-10-06 21:33:25 +02:00
Benjamin Renard
4ff38aa898 Add LdapClient.format_changes() method 2021-07-12 13:37:41 +02:00
Benjamin Renard
21bd45ad25 PgDB: add possibility to provide query parameters on doSelect() 2021-07-12 12:18:38 +02:00
Benjamin Renard
6e778a8691 PgDB: fix connect() return and improve logging 2021-07-12 12:18:29 +02:00
Benjamin Renard
51dd4f5724 mylib.script.helpers: move email stuff import to helper function to avoid global requirement 2021-06-23 12:59:48 +02:00
Benjamin Renard
b27cae5b1e Split specific dependecies in extras require 2021-06-23 12:52:44 +02:00
Benjamin Renard
9134502ec4 Add requirements 2021-06-03 15:50:41 +02:00
Benjamin Renard
b9ba720798 LdapClient: fix get_object_by_dn() and get_object_by_dn() methods when populate cache method return no objects 2021-06-03 12:26:19 +02:00
Benjamin Renard
6e85515420 Add missing __init__.py file for mylib.scripts 2021-06-02 19:16:11 +02:00
Benjamin Renard
ca96b074d3 fix s/email/email3/ requirement 2021-06-02 18:59:35 +02:00
Benjamin Renard
a325803130 Add LdapClient 2021-06-02 18:59:09 +02:00
Benjamin Renard
1cd9432e25 email options: remove short options to avoid conflict 2021-05-26 15:13:15 +02:00
Benjamin Renard
5bdfc8479d Fix some pylint warnings 2021-05-26 14:44:30 +02:00
Benjamin Renard
b2d33e3ddf mylib.scripts.helpers: add possibility to specify config dict to handle default option values 2021-05-26 14:44:15 +02:00
Benjamin Renard
51a4d35823 Add some pretty formating helper functions 2021-05-26 11:56:45 +02:00
Benjamin Renard
45f088fa2b scripts.helpers: improve get_opts_parser() 2021-05-26 11:56:02 +02:00
Benjamin Renard
f44006535b ldap: format_date & parse_date: consider naive date as default 2021-05-26 11:55:16 +02:00
Benjamin Renard
6bbacce38a Code cleaning 2021-05-19 19:19:57 +02:00
Benjamin Renard
ad31ddc699 typo 2021-05-19 18:10:09 +02:00
Benjamin Renard
bc291ea21e Merge branch 'pkg' 2021-05-19 18:08:30 +02:00
Benjamin Renard
bd4845f780 Switch to module style lib, make python3 compatibility and clean code 2021-05-19 18:07:42 +02:00
Benjamin Renard
64c2db5d5d Report.send: log report sending success/error 2021-04-19 14:55:54 +02:00
Benjamin Renard
2c442a2433 Report: add send_at_exit method 2021-04-19 14:55:07 +02:00
Benjamin Renard
4d91675d7a EmailClient.forge_message: add attachment_payloads parameter 2021-04-19 14:48:06 +02:00
Benjamin Renard
49ed5d7a82 Add Report 2021-04-19 14:47:30 +02:00
Benjamin Renard
b6465f0ce8 EmailClient: fix typo 2021-03-24 19:36:07 +01:00
Benjamin Renard
76e28d51cd EmailClient: fix pylint warnings 2021-03-24 19:20:36 +01:00
Benjamin Renard
c391b68dae EmailClient.forge_message(): fix handling sender_name 2021-03-24 19:20:11 +01:00
Benjamin Renard
fac20864ce EmailClient: fix handling templates and permit to use Mako Template 2021-03-24 19:11:32 +01:00
Benjamin Renard
0229cc9ab4 Add Pbar 2021-03-24 18:49:59 +01:00
Benjamin Renard
aa2e1ee99f LdapServer.update_object(): add relax parameter 2021-03-24 18:16:23 +01:00
Benjamin Renard
45a0b99687 LdapServer: fix some pylint warnings 2021-03-24 13:49:08 +01:00
Benjamin Renard
8a62a8545d LdapServer: fix ident with 4 spaces instead of tab 2021-03-24 12:40:35 +01:00
Benjamin Renard
35187aebdf LdapServer: fix formating naive date/datetime 2021-03-24 12:37:03 +01:00
Benjamin Renard
6830447f96 Add support for ldapi URI (using Unix socket) 2021-03-24 12:34:29 +01:00
Benjamin Renard
bb5ef528b0 LdapServer: fix python3 compatibility 2021-03-24 12:33:45 +01:00
Benjamin Renard
3901c1bd49 Add EmailClient 2021-01-13 16:09:33 +01:00
Benjamin Renard
933efd4086 LdapServer: fix handing new superior DN in rename_object() and add delete_old parameter 2020-12-16 10:07:39 +01:00
Benjamin Renard
4135d00dd3 LdapServer: Add paged_search() 2020-12-15 18:24:52 +01:00
Benjamin Renard
1f72a85b71 LdapServer: add get_object() method 2020-12-14 20:56:48 +01:00
Benjamin Renard
d336ab3a8d LdapServer: add get_changes() and format_changes() methods 2020-09-23 15:55:55 +02:00