names: Split app initialization

Tests:

- When domain name is changed in config module. The updated names shows up in
the names module.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2021-11-14 12:02:41 -08:00 committed by James Valleroy
parent 32d7ce9b38
commit 1d17ba2134
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -56,6 +56,9 @@ class NamesApp(app_module.App):
**manifest.backup)
self.add(backup_restore)
@staticmethod
def post_init():
"""Perform post initialization operations."""
domain_added.connect(on_domain_added)
domain_removed.connect(on_domain_removed)