Commit Graph

22 Commits

Author SHA1 Message Date
388320bbaf ## Consolidate Configuration Files
### Key Changes:
- **Unified Configuration**: Consolidated all configs into single package-named file
- **Removed Separate Files**: Deleted wapt_api.ini, smtp.ini, rocket.ini
- **Updated Functions**: Modified all functions to read from unified config
- **Version Bump**: Updated to version 2-1

### New Configuration Structure:
```
comi-apps-to-update-on-wapt-server.ini
├── [wapt]           # WAPT server credentials
├── [notifications]   # Notification preferences
├── [smtp]           # Email configuration
└── [rocket]         # Rocket.Chat configuration
```

### Benefits:
- **Simpler Deployment**: Single config file instead of 4 separate files
- **Better Organization**: Related settings grouped together
- **Easier Management**: One file to backup and configure
- **Cleaner Package**: No scattered configuration files

### Technical Updates:
- Updated install() function to copy unified config only
- Modified all config reading functions to use unified file path
- Enhanced debug output with step-by-step progress tracking
2025-12-30 16:08:26 +01:00
1f4338a85d ## Major Refactoring and Error Handling Improvements
### Key Changes:
- **Code Structure**: Complete refactoring removing 392→180 lines of duplicated code
- **Error Handling**: Added comprehensive error handling with detailed tracebacks
- **Configuration**: Added configurable notification methods (email/rocket/both)
- **Security**: Fixed function naming inconsistency (send_mail→send_email)
- **Validation**: Added input validation and graceful error fallbacks

### Bug Fixes:
- Fixed version conflict in WAPT/control (removed duplicate version entry)
- Fixed syntax error in French string (unescaped apostrophe)
- Fixed missing function calls and import issues

### New Features:
- Configurable notification channels via wapt_api.ini [notifications] section
- Default configuration fallbacks when config files missing
- Network timeout handling (30s for external requests)
- SSL certificate validation with proper error messages

### Technical Improvements:
- Modular function design for better testability
- Proper exception handling for all network operations
- Better error messages with tracebacks for debugging
- Cleaner separation of concerns
2025-12-30 15:48:34 +01:00
84c736c703 Refactor: Remove unnecessary else after return in audit function 2025-12-29 13:02:18 +01:00
9e5b9b6677 Refactor: Rename CONFWAPT to conf_wapt 2025-12-29 13:01:56 +01:00
1c71174111 Style: Reorder imports to follow PEP 8 guidelines 2025-12-29 13:00:20 +01:00
25972156eb Docs: Add module docstring 2025-12-29 12:49:12 +01:00
2f436f8384 Actualiser setup.py 2025-12-29 10:03:53 +00:00
c95e799036 Actualiser WAPT/control 2024-07-05 12:53:20 +00:00
12991d42e1 clean control 2024-07-05 12:21:41 +02:00
b08a4f931d swap to email by default 2024-07-05 12:07:17 +02:00
8708e06155 add rocket.ini 2024-07-05 12:01:34 +02:00
9eaf9952ca update readme 2024-07-05 11:32:12 +02:00
d241062d9b remove ALL 2024-07-05 11:25:27 +02:00
44bc85b730 reorganisation 2024-07-05 11:14:18 +02:00
85b8170ea9 fix setting 2024-07-05 10:57:27 +02:00
05aaccdff1 blabla 2024-07-05 10:53:51 +02:00
aadf88afa6 change 2024-07-05 10:24:01 +02:00
c7a4db9914 Actualiser all/setup.py 2024-04-30 14:59:59 +00:00
2465a26e30 add audit_data 2023-10-23 09:45:30 +02:00
1f0a3a269f improve audit 2023-09-07 09:20:10 +02:00
2d810ffe98 first commit 2023-09-05 16:33:48 +02:00
17117a0b80 Initial commit 2023-09-05 14:24:11 +00:00