mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 06:04:21 +01:00
Updates teos to work with the new conf file format and redefines how objects are built
Configuration parameters are now load from a .conf file (see template.conf as an example). The code has 3 config levels: default (teos/__init__.py), config file (<data_dir>/teos.conf) and command line. Most of the config parameters are only modificable trough the config file for now. The priority order is: command line, config file, default. Objects that need config parameters are now built in teosd instead of inside other classes. Therefore teosd acts like a factory and config parameters don't have to be passed around between objects. This also implies that a lot of the object creation logic has been changed. This should simplify unit testing.
This commit is contained in:
@@ -81,7 +81,7 @@ class Cleaner:
|
||||
logger.error("Some UUIDs not found in the db", locator=locator, all_uuids=uuids)
|
||||
|
||||
else:
|
||||
logger.error("Locator map not found in the db", uuid=locator)
|
||||
logger.error("Locator map not found in the db", locator=locator)
|
||||
|
||||
@staticmethod
|
||||
def delete_expired_appointments(expired_appointments, appointments, locator_uuid_map, db_manager):
|
||||
|
||||
Reference in New Issue
Block a user